dotty.tools.dotc.reporting.Message
See theMessage companion object
A Message
contains all semantic information necessary to easily
comprehend what caused the message to be logged. Each message can be turned
into a Diagnostic
which contains the log level and can later be
consumed by a subclass of Reporter
. However, the error position is only
part of Diagnostic
, not Message
.
NOTE: you should not persist a message directly, because most messages take
an implicit Context
and these contexts weigh in at about 4mb per instance.
Therefore, persisting these will result in a memory leak.
Instead use the persist
method to create an instance that does not keep a
reference to these contexts.
Attributes
- errorId
a unique id identifying the message, this will be used to reference documentation online
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
- class CyclicMsgclass CyclicReferenceInvolvingclass DeclarationMsgclass IllegalSuperAccessorclass OverloadInRefinementclass OverrideErrorclass OverridesNothingclass UnapplyInvalidReturnTypeclass MatchCaseUnreachableclass NamingMsgclass AlreadyDefinedclass DoubleDefinitionclass DuplicateBindclass PkgDuplicateSymbolclass NoExplanationclass NotFoundMsgclass MissingIdentclass NotAMemberclass PatternMatchExhaustivityclass PatternMatchMsgclass MatchCaseOnlyNullWarningclass UncheckedTypePatternclass ProperDefinitionNotFoundclass ReferenceMsgclass AmbiguousOverloadclass AmbiguousReferenceclass BadSymbolicReferenceclass SuperQualMustBeParenttrait ShowMatchTraceclass NotClassTypeclass TypeMismatchMsgclass DoesNotConformToBoundclass DoesNotConformToSelfTypeclass IllegalParameterInitclass TypeMismatchclass SyntaxMsgclass CannotExtendAnyValclass CannotExtendJavaEnumclass CannotHaveSameNameAsclass 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 WrongNumberOfTypeArgsclass TypeMsgclass JavaEnumParentArgsclass JavaSymbolIsNotAValueclass MatchableWarningclass MissingArgumentclass NoMatchingOverloadclass NotAPathclass ReassignmentToValclass SkolemInInferredclass StableIdentPatternclass UnreducibleApplication
- Self type