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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/parser/error_kind.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/error_kind.dart b/pkg/front_end/lib/src/fasta/parser/error_kind.dart
index 1c98c5505b08d969f72ac861cea264855e7cdb4f..1234e505b13cd1a018efe79f319b4ddc9491b9b0 100644
--- a/pkg/front_end/lib/src/fasta/parser/error_kind.dart
+++ b/pkg/front_end/lib/src/fasta/parser/error_kind.dart
@@ -6,7 +6,11 @@ library fasta.parser.error_kind;
/// Kinds of error codes.
enum ErrorKind {
+ AbstractNotSync,
AsciiControlCharacter,
+ AsyncAsIdentifier,
+ AwaitAsIdentifier,
+ AwaitNotAsync,
BuiltInIdentifierAsType,
BuiltInIdentifierInDeclaration,
EmptyNamedParameterList,
@@ -21,6 +25,7 @@ enum ErrorKind {
/// Dart Language Specification) Dart VM native clauses. See
/// [dart_vm_native.dart].
ExpectedClassBodyToSkip,
+ AwaitForNotAsync,
ExpectedDeclaration,
ExpectedExpression,
ExpectedFunctionBody,
@@ -31,8 +36,10 @@ enum ErrorKind {
ExpectedType,
ExtraneousModifier,
ExtraneousModifierReplace,
- InvalidInlineFunctionType,
+ FactoryNotSync,
+ GeneratorReturnsValue,
InvalidAwaitFor,
+ InvalidInlineFunctionType,
InvalidSyncModifier,
InvalidVoid,
MissingExponent,
@@ -40,6 +47,7 @@ enum ErrorKind {
NonAsciiWhitespace,
PositionalParameterWithEquals,
RequiredParameterWithDefault,
+ SetterNotSync,
StackOverflow,
UnexpectedDollarInString,
UnexpectedToken,
@@ -48,5 +56,7 @@ enum ErrorKind {
UnterminatedComment,
UnterminatedString,
UnterminatedToken,
+ YieldAsIdentifier,
+ YieldNotGenerator,
Unspecified,
}
« 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