OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library fasta.parser.error_kind; | 5 library fasta.parser.error_kind; |
6 | 6 |
7 /// Kinds of error codes. | 7 /// Kinds of error codes. |
8 enum ErrorKind { | 8 enum ErrorKind { |
9 AsciiControlCharacter, | 9 AsciiControlCharacter, |
| 10 BuiltInIdentifierAsType, |
| 11 BuiltInIdentifierInDeclaration, |
10 EmptyNamedParameterList, | 12 EmptyNamedParameterList, |
11 EmptyOptionalParameterList, | 13 EmptyOptionalParameterList, |
12 Encoding, | 14 Encoding, |
13 ExpectedBlockToSkip, | 15 ExpectedBlockToSkip, |
14 ExpectedBody, | 16 ExpectedBody, |
15 ExpectedButGot, | 17 ExpectedButGot, |
16 ExpectedClassBody, | 18 ExpectedClassBody, |
17 | 19 |
18 /// This error code can be used to support non-compliant (with respect to | 20 /// This error code can be used to support non-compliant (with respect to |
19 /// Dart Language Specification) Dart VM native clauses. See | 21 /// Dart Language Specification) Dart VM native clauses. See |
(...skipping 21 matching lines...) Expand all Loading... |
41 StackOverflow, | 43 StackOverflow, |
42 UnexpectedDollarInString, | 44 UnexpectedDollarInString, |
43 UnexpectedToken, | 45 UnexpectedToken, |
44 UnmatchedToken, | 46 UnmatchedToken, |
45 UnsupportedPrefixPlus, | 47 UnsupportedPrefixPlus, |
46 UnterminatedComment, | 48 UnterminatedComment, |
47 UnterminatedString, | 49 UnterminatedString, |
48 UnterminatedToken, | 50 UnterminatedToken, |
49 Unspecified, | 51 Unspecified, |
50 } | 52 } |
OLD | NEW |