mxmlextrema_as3parser/diagnostics/
diagnostic_kind.rs1#[repr(i32)]
2#[derive(Eq, PartialEq, Clone, Copy)]
3pub enum DiagnosticKind {
4 InvalidEscapeValue = 1024,
5 UnexpectedEnd = 1025,
6 UnallowedNumericSuffix = 1026,
7 StringLiteralMustBeTerminatedBeforeLineBreak = 1027,
8 Expecting = 1028,
9 ExpectingIdentifier = 1029,
10 ExpectingExpression = 1030,
11 ExpectingXmlName = 1031,
12 ExpectingXmlAttributeValue = 1032,
13 IllegalNullishCoalescingLeftOperand = 1033,
14 WrongParameterPosition = 1034,
15 DuplicateRestParameter = 1035,
16 NotAllowedHere = 1036,
17 MalformedRestParameter = 1037,
18 IllegalForInInitializer = 1038,
19 MultipleForInBindings = 1039,
20 UndefinedLabel = 1040,
21 IllegalContinue = 1041,
22 IllegalBreak = 1042,
23 ExpressionMustNotFollowLineBreak = 1043,
24 TokenMustNotFollowLineBreak = 1044,
25 ExpectingStringLiteral = 1045,
26 DuplicateAttribute = 1046,
27 DuplicateAccessModifier = 1047,
28 ExpectingDirectiveKeyword = 1048,
29 UnallowedAttribute = 1049,
30 UseDirectiveMustContainPublic = 1050,
31 MalformedEnumMember = 1051,
32 FunctionMayNotBeGenerator = 1052,
33 FunctionMayNotBeAsynchronous = 1053,
34 FunctionMustNotContainBody = 1054,
35 FunctionMustContainBody = 1055,
36 FunctionMustNotContainAnnotations = 1056,
37 NestedClassesNotAllowed = 1057,
38 UnexpectedDirective = 1058,
39 FailedParsingAsdocTag = 1059,
40 UnrecognizedAsdocTag = 1060,
41 UnrecognizedProxy = 1061,
42 EnumMembersMustBeConst = 1062,
43 ConstructorMustNotSpecifyResultType = 1063,
44 UnrecognizedMetadataSyntax = 1064,
45 FailedToIncludeFile = 1065,
46 ParentSourceIsNotAFile = 1066,
47 CircularIncludeDirective = 1067,
48 MalformedDestructuring = 1068,
49 XmlPrefixNotDefined = 1069,
50 RedefiningXmlAttribute = 1070,
51 InvalidXmlPi = 1071,
52 XmlPiUnknownAttribute = 1072,
53 XmlPiVersion = 1073,
54 XmlPiEncoding = 1074,
55 XmlMustConsistOfExactly1Element = 1075,
56 XmlNameAtMostOneColon = 1076,
57 UnexpectedCharacter = 1077,
58 InputEndedBeforeReachingClosingQuoteForString = 1078,
59 InputEndedBeforeReachingClosingSeqForCData = 1079,
60 InputEndedBeforeReachingClosingSeqForPi = 1080,
61 InputEndedBeforeReachingClosingSeqForXmlComment = 1081,
62 InputEndedBeforeReachingClosingSeqForMultiLineComment = 1082,
63 InputEndedBeforeReachingClosingSlashForRegExp = 1083,
64 InputEndedBeforeReachingClosingQuoteForAttributeValue = 1084,
65 ExpectingEitherSemicolonOrNewLineHere = 1085,
66 CssInvalidHexEscape = 1086,
67 ExpectingDirective = 1087,
68 ExpectingStatement = 1088,
69 Unexpected = 1089,
70 XmlClosingTagNameMustBeEquals = 1090,
71 UnexpectedIncludeExtension = 1091,
72 UnallowedExpression = 1092,
73 ExpectingCssSelector = 1093,
74}
75
76impl DiagnosticKind {
77 pub fn id(&self) -> i32 {
78 *self as i32
79 }
80}