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

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

Issue 2765253002: Report error on only-try block. (Closed)
Patch Set: 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 | « no previous file | 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 1234e505b13cd1a018efe79f319b4ddc9491b9b0..f622987d8cd4b488b7314f24341fffb9ea67617b 100644
--- a/pkg/front_end/lib/src/fasta/parser/error_kind.dart
+++ b/pkg/front_end/lib/src/fasta/parser/error_kind.dart
@@ -10,6 +10,7 @@ enum ErrorKind {
AsciiControlCharacter,
AsyncAsIdentifier,
AwaitAsIdentifier,
+ AwaitForNotAsync,
AwaitNotAsync,
BuiltInIdentifierAsType,
BuiltInIdentifierInDeclaration,
@@ -25,7 +26,6 @@ enum ErrorKind {
/// Dart Language Specification) Dart VM native clauses. See
/// [dart_vm_native.dart].
ExpectedClassBodyToSkip,
- AwaitForNotAsync,
ExpectedDeclaration,
ExpectedExpression,
ExpectedFunctionBody,
@@ -45,6 +45,7 @@ enum ErrorKind {
MissingExponent,
NonAsciiIdentifier,
NonAsciiWhitespace,
+ OnlyTry,
PositionalParameterWithEquals,
RequiredParameterWithDefault,
SetterNotSync,
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698