SyntaxMsg
dotty.tools.dotc.reporting.SyntaxMsg
abstract class SyntaxMsg(errorId: ErrorMessageID)(using x$2: Context) extends Message
Messages
The role of messages is to provide the necessary details for a simple to understand diagnostic event. Each message can be turned into a message container (one of the above) by calling the appropriate method on them. For instance:
EmptyCatchBlock(tree).error(pos) // res: Error
EmptyCatchBlock(tree).warning(pos) // res: Warning
Attributes
- Graph
-
- Supertypes
- Known subtypes
-
class CannotExtendAnyValclass CannotExtendJavaEnumclass CaseClassInInlinedCodeclass ClassCannotExtendEnumclass CyclicInheritanceclass DeprecatedWithOperatorclass EmptyCatchOrFinallyBlockclass EmptyCatchBlockclass ExpectedTokenButFoundclass ExtendFinalClassclass ExtensionCanOnlyHaveDefsclass IdentifierExpectedclass IllegalLiteralclass IllegalStartOfStatementclass IllegalStartSimpleExprclass ImplicitCaseClassclass ImportRenamedTwiceclass InterpolatedStringErrorclass LazyStaticFieldclass MissingEmptyArgumentListclass MissingReturnTypeclass MissingTypeParameterForclass NoExtensionMethodAllowedclass NoReturnFromInlineableclass NotAnExtractorclass ObjectMayNotHaveSelfTypeclass OnlyClassesCanBeAbstractclass ParamsNoInlineclass RedundantModifierclass RepeatedModifierclass SeqWildcardPatternPosclass TailrecNotApplicableclass TopLevelImplicitClassclass TraitIsExpectedclass TraitsMayNotBeFinalclass TypeTestAlwaysDivergesclass UnableToEmitSwitchclass UnboundWildcardTypeclass VarArgsParamMustComeLastclass WrongNumberOfParametersclass WrongNumberOfTypeArgs
Members list
In this article