1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// This file is auto-generated by codegen/rust/messages/native/enum_.rs

use super::variants::*;

/// Enum of all possible diagnostic message (both warnings and errors)
#[derive(Debug, Clone, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum DiagnosticMessage {
    FractionAfterNumeric(FractionAfterNumeric),
    NoDigitsAfterDot(NoDigitsAfterDot),
    UnknownTypeOfPercentString(UnknownTypeOfPercentString),
    NumericLiteralWithoutDigits(NumericLiteralWithoutDigits),
    UnterminatedList(UnterminatedList),
    UnterminatedRegexp(UnterminatedRegexp),
    UnterminatedString(UnterminatedString),
    UnterminatedQuotedString(UnterminatedQuotedString),
    InvalidUnicodeEscape(InvalidUnicodeEscape),
    TooLargeUnicodeCodepoint(TooLargeUnicodeCodepoint),
    InvalidUnicodeCodepoint(InvalidUnicodeCodepoint),
    MultipleCodepointAtSingleChar(MultipleCodepointAtSingleChar),
    InvalidEscapeCharacter(InvalidEscapeCharacter),
    InvalidHexEscape(InvalidHexEscape),
    UnterminatedHeredoc(UnterminatedHeredoc),
    UnterminatedHeredocId(UnterminatedHeredocId),
    SlashRAtMiddleOfLine(SlashRAtMiddleOfLine),
    DStarInterpretedAsArgPrefix(DStarInterpretedAsArgPrefix),
    StarInterpretedAsArgPrefix(StarInterpretedAsArgPrefix),
    AmpersandInterpretedAsArgPrefix(AmpersandInterpretedAsArgPrefix),
    TripleDotAtEol(TripleDotAtEol),
    ParenthesesIterpretedAsArglist(ParenthesesIterpretedAsArglist),
    AmbiguousFirstArgument(AmbiguousFirstArgument),
    AmbiguousOperator(AmbiguousOperator),
    InvalidCharacterSyntax(InvalidCharacterSyntax),
    InvalidOctalDigit(InvalidOctalDigit),
    TrailingCharInNumber(TrailingCharInNumber),
    EmbeddedDocumentMeetsEof(EmbeddedDocumentMeetsEof),
    InvalidChar(InvalidChar),
    IncompleteCharacterSyntax(IncompleteCharacterSyntax),
    GvarWithoutId(GvarWithoutId),
    InvalidGvarName(InvalidGvarName),
    IvarWithoutId(IvarWithoutId),
    InvalidIvarName(InvalidIvarName),
    CvarWithoutId(CvarWithoutId),
    InvalidCvarName(InvalidCvarName),
    UnknownRegexOptions(UnknownRegexOptions),
    UnterminatedUnicodeEscape(UnterminatedUnicodeEscape),
    EncodingError(EncodingError),
    InvalidMultibyteChar(InvalidMultibyteChar),
    AmbiguousTernaryOperator(AmbiguousTernaryOperator),
    AmbiguousRegexp(AmbiguousRegexp),
    ElseWithoutRescue(ElseWithoutRescue),
    BeginNotAtTopLevel(BeginNotAtTopLevel),
    AliasNthRef(AliasNthRef),
    CsendInsideMasgn(CsendInsideMasgn),
    ClassOrModuleNameMustBeConstant(ClassOrModuleNameMustBeConstant),
    EndlessSetterDefinition(EndlessSetterDefinition),
    UnexpectedToken(UnexpectedToken),
    ClassDefinitionInMethodBody(ClassDefinitionInMethodBody),
    ModuleDefinitionInMethodBody(ModuleDefinitionInMethodBody),
    InvalidReturnInClassOrModuleBody(InvalidReturnInClassOrModuleBody),
    ConstArgument(ConstArgument),
    IvarArgument(IvarArgument),
    GvarArgument(GvarArgument),
    CvarArgument(CvarArgument),
    NoSuchLocalVariable(NoSuchLocalVariable),
    OrdinaryParamDefined(OrdinaryParamDefined),
    NumparamUsed(NumparamUsed),
    TokAtEolWithoutExpression(TokAtEolWithoutExpression),
    EndInMethod(EndInMethod),
    ComparisonAfterComparison(ComparisonAfterComparison),
    CircularArgumentReference(CircularArgumentReference),
    DynamicConstantAssignment(DynamicConstantAssignment),
    CantAssignToSelf(CantAssignToSelf),
    CantAssignToNil(CantAssignToNil),
    CantAssignToTrue(CantAssignToTrue),
    CantAssignToFalse(CantAssignToFalse),
    CantAssignToFile(CantAssignToFile),
    CantAssignToLine(CantAssignToLine),
    CantAssignToEncoding(CantAssignToEncoding),
    CantAssignToNumparam(CantAssignToNumparam),
    CantSetVariable(CantSetVariable),
    BlockGivenToYield(BlockGivenToYield),
    BlockAndBlockArgGiven(BlockAndBlockArgGiven),
    SymbolLiteralWithInterpolation(SymbolLiteralWithInterpolation),
    ReservedForNumparam(ReservedForNumparam),
    KeyMustBeValidAsLocalVariable(KeyMustBeValidAsLocalVariable),
    DuplicateVariableName(DuplicateVariableName),
    DuplicateKeyName(DuplicateKeyName),
    SingletonLiteral(SingletonLiteral),
    NthRefIsTooBig(NthRefIsTooBig),
    DuplicatedArgumentName(DuplicatedArgumentName),
    RegexError(RegexError),
    InvalidSymbol(InvalidSymbol),
    VoidValueExpression(VoidValueExpression),
}