OLD | NEW |
| (Empty) |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 library fasta.parser.error_kind; | |
6 | |
7 /// Kinds of error codes. | |
8 enum ErrorKind { | |
9 AbstractNotSync, | |
10 AsciiControlCharacter, | |
11 AsyncAsIdentifier, | |
12 AwaitAsIdentifier, | |
13 AwaitForNotAsync, | |
14 AwaitNotAsync, | |
15 BuiltInIdentifierAsType, | |
16 BuiltInIdentifierInDeclaration, | |
17 EmptyNamedParameterList, | |
18 EmptyOptionalParameterList, | |
19 Encoding, | |
20 ExpectedBlockToSkip, | |
21 ExpectedBody, | |
22 ExpectedButGot, | |
23 ExpectedClassBody, | |
24 | |
25 /// This error code can be used to support non-compliant (with respect to | |
26 /// Dart Language Specification) Dart VM native clauses. See | |
27 /// [dart_vm_native.dart]. | |
28 ExpectedClassBodyToSkip, | |
29 ExpectedDeclaration, | |
30 ExpectedExpression, | |
31 ExpectedFunctionBody, | |
32 ExpectedHexDigit, | |
33 ExpectedIdentifier, | |
34 ExpectedOpenParens, | |
35 ExpectedString, | |
36 ExpectedType, | |
37 ExtraneousModifier, | |
38 ExtraneousModifierReplace, | |
39 FactoryNotSync, | |
40 GeneratorReturnsValue, | |
41 InvalidAwaitFor, | |
42 InvalidInlineFunctionType, | |
43 InvalidSyncModifier, | |
44 InvalidVoid, | |
45 MissingExponent, | |
46 NonAsciiIdentifier, | |
47 NonAsciiWhitespace, | |
48 OnlyTry, | |
49 PositionalParameterWithEquals, | |
50 RequiredParameterWithDefault, | |
51 SetterNotSync, | |
52 StackOverflow, | |
53 UnexpectedDollarInString, | |
54 UnexpectedToken, | |
55 UnmatchedToken, | |
56 UnsupportedPrefixPlus, | |
57 UnterminatedComment, | |
58 UnterminatedString, | |
59 UnterminatedToken, | |
60 YieldAsIdentifier, | |
61 YieldNotGenerator, | |
62 Unspecified, | |
63 } | |
OLD | NEW |