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

Unified Diff: pkg/compiler/lib/src/scanner/parser.dart

Issue 1067653003: Handle unexpected tokens in modifier lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | tests/language/regress_23051_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/scanner/parser.dart
diff --git a/pkg/compiler/lib/src/scanner/parser.dart b/pkg/compiler/lib/src/scanner/parser.dart
index 00e599f55b13e4b16b54a6fe34313dfb5bd6b972..7957b5e929335a86fe54b2ecd214e6636d08c885 100644
--- a/pkg/compiler/lib/src/scanner/parser.dart
+++ b/pkg/compiler/lib/src/scanner/parser.dart
@@ -1073,6 +1073,8 @@ class Parser {
parseModifier(token);
} else {
listener.unexpected(token);
+ // Skip the remaining modifiers.
+ break;
}
count++;
}
« no previous file with comments | « no previous file | tests/language/regress_23051_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698