| 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 enum ErrorKind { | 7 enum ErrorKind { |
| 8 AsciiControlCharacter, |
| 8 EmptyNamedParameterList, | 9 EmptyNamedParameterList, |
| 9 EmptyOptionalParameterList, | 10 EmptyOptionalParameterList, |
| 11 Encoding, |
| 10 ExpectedBlockToSkip, | 12 ExpectedBlockToSkip, |
| 11 ExpectedBody, | 13 ExpectedBody, |
| 12 ExpectedButGot, | 14 ExpectedButGot, |
| 13 ExpectedClassBody, | 15 ExpectedClassBody, |
| 14 ExpectedClassBodyToSkip, | 16 ExpectedClassBodyToSkip, |
| 15 ExpectedDeclaration, | 17 ExpectedDeclaration, |
| 16 ExpectedExpression, | 18 ExpectedExpression, |
| 17 ExpectedFunctionBody, | 19 ExpectedFunctionBody, |
| 18 ExpectedHexDigit, | 20 ExpectedHexDigit, |
| 19 ExpectedIdentifier, | 21 ExpectedIdentifier, |
| 20 ExpectedOpenParens, | 22 ExpectedOpenParens, |
| 21 ExpectedString, | 23 ExpectedString, |
| 22 ExpectedType, | 24 ExpectedType, |
| 23 ExtraneousModifier, | 25 ExtraneousModifier, |
| 24 ExtraneousModifierReplace, | 26 ExtraneousModifierReplace, |
| 25 InvalidAwaitFor, | 27 InvalidAwaitFor, |
| 26 InvalidInputCharacter, | |
| 27 InvalidSyncModifier, | 28 InvalidSyncModifier, |
| 28 InvalidVoid, | 29 InvalidVoid, |
| 29 MalformedStringLiteral, | |
| 30 MissingExponent, | 30 MissingExponent, |
| 31 NonAsciiIdentifier, |
| 32 NonAsciiWhitespace, |
| 31 PositionalParameterWithEquals, | 33 PositionalParameterWithEquals, |
| 32 RequiredParameterWithDefault, | 34 RequiredParameterWithDefault, |
| 35 UnexpectedDollarInString, |
| 33 UnexpectedToken, | 36 UnexpectedToken, |
| 34 UnmatchedToken, | 37 UnmatchedToken, |
| 35 UnsupportedPrefixPlus, | 38 UnsupportedPrefixPlus, |
| 36 UnterminatedComment, | 39 UnterminatedComment, |
| 37 UnterminatedString, | 40 UnterminatedString, |
| 38 UnterminatedToken, | 41 UnterminatedToken, |
| 39 | 42 |
| 40 Unspecified, | 43 Unspecified, |
| 41 } | 44 } |
| OLD | NEW |