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

Unified Diff: pkg/dart_parser/lib/src/error_kind.dart

Issue 2650813002: Restructure parser error handling and recovery. (Closed)
Patch Set: Address comments. Created 3 years, 11 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/dart_parser/lib/dart_parser.dart ('k') | pkg/dart_parser/lib/src/listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dart_parser/lib/src/error_kind.dart
diff --git a/pkg/dart_parser/lib/src/error_kind.dart b/pkg/dart_parser/lib/src/error_kind.dart
index f4df727e43e7e4a149c708e1dd68309c493858f0..baaef155cb1efac10ef45d96eff5c2b36d7c3184 100644
--- a/pkg/dart_parser/lib/src/error_kind.dart
+++ b/pkg/dart_parser/lib/src/error_kind.dart
@@ -7,10 +7,19 @@ library dart_parser.error_kind;
enum ErrorKind {
EmptyNamedParameterList,
EmptyOptionalParameterList,
+ ExpectedBlockToSkip,
ExpectedBody,
+ ExpectedButGot,
+ ExpectedClassBody,
+ ExpectedClassBodyToSkip,
+ ExpectedDeclaration,
+ ExpectedExpression,
+ ExpectedFunctionBody,
ExpectedHexDigit,
+ ExpectedIdentifier,
ExpectedOpenParens,
ExpectedString,
+ ExpectedType,
ExtraneousModifier,
ExtraneousModifierReplace,
InvalidAwaitFor,
@@ -21,6 +30,7 @@ enum ErrorKind {
MissingExponent,
PositionalParameterWithEquals,
RequiredParameterWithDefault,
+ UnexpectedToken,
UnmatchedToken,
UnsupportedPrefixPlus,
UnterminatedComment,
« no previous file with comments | « pkg/dart_parser/lib/dart_parser.dart ('k') | pkg/dart_parser/lib/src/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698