Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: pkg/front_end/lib/src/fasta/parser/error_kind.dart

Issue 2759663002: Improve parsing of async and generator methods. (Closed)
Patch Set: Ignore some error messages already handled by dart2js. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 AbstractNotSync,
9 AsciiControlCharacter, 10 AsciiControlCharacter,
11 AsyncAsIdentifier,
12 AwaitAsIdentifier,
13 AwaitNotAsync,
10 BuiltInIdentifierAsType, 14 BuiltInIdentifierAsType,
11 BuiltInIdentifierInDeclaration, 15 BuiltInIdentifierInDeclaration,
12 EmptyNamedParameterList, 16 EmptyNamedParameterList,
13 EmptyOptionalParameterList, 17 EmptyOptionalParameterList,
14 Encoding, 18 Encoding,
15 ExpectedBlockToSkip, 19 ExpectedBlockToSkip,
16 ExpectedBody, 20 ExpectedBody,
17 ExpectedButGot, 21 ExpectedButGot,
18 ExpectedClassBody, 22 ExpectedClassBody,
19 23
20 /// This error code can be used to support non-compliant (with respect to 24 /// This error code can be used to support non-compliant (with respect to
21 /// Dart Language Specification) Dart VM native clauses. See 25 /// Dart Language Specification) Dart VM native clauses. See
22 /// [dart_vm_native.dart]. 26 /// [dart_vm_native.dart].
23 ExpectedClassBodyToSkip, 27 ExpectedClassBodyToSkip,
28 AwaitForNotAsync,
24 ExpectedDeclaration, 29 ExpectedDeclaration,
25 ExpectedExpression, 30 ExpectedExpression,
26 ExpectedFunctionBody, 31 ExpectedFunctionBody,
27 ExpectedHexDigit, 32 ExpectedHexDigit,
28 ExpectedIdentifier, 33 ExpectedIdentifier,
29 ExpectedOpenParens, 34 ExpectedOpenParens,
30 ExpectedString, 35 ExpectedString,
31 ExpectedType, 36 ExpectedType,
32 ExtraneousModifier, 37 ExtraneousModifier,
33 ExtraneousModifierReplace, 38 ExtraneousModifierReplace,
39 FactoryNotSync,
40 GeneratorReturnsValue,
41 InvalidAwaitFor,
34 InvalidInlineFunctionType, 42 InvalidInlineFunctionType,
35 InvalidAwaitFor,
36 InvalidSyncModifier, 43 InvalidSyncModifier,
37 InvalidVoid, 44 InvalidVoid,
38 MissingExponent, 45 MissingExponent,
39 NonAsciiIdentifier, 46 NonAsciiIdentifier,
40 NonAsciiWhitespace, 47 NonAsciiWhitespace,
41 PositionalParameterWithEquals, 48 PositionalParameterWithEquals,
42 RequiredParameterWithDefault, 49 RequiredParameterWithDefault,
50 SetterNotSync,
43 StackOverflow, 51 StackOverflow,
44 UnexpectedDollarInString, 52 UnexpectedDollarInString,
45 UnexpectedToken, 53 UnexpectedToken,
46 UnmatchedToken, 54 UnmatchedToken,
47 UnsupportedPrefixPlus, 55 UnsupportedPrefixPlus,
48 UnterminatedComment, 56 UnterminatedComment,
49 UnterminatedString, 57 UnterminatedString,
50 UnterminatedToken, 58 UnterminatedToken,
59 YieldAsIdentifier,
60 YieldNotGenerator,
51 Unspecified, 61 Unspecified,
52 } 62 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/parser/element_listener.dart ('k') | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698