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

Unified Diff: pkg/front_end/messages.yaml

Issue 3007943002: gracefully recover from extraneous top level modifiers (Closed)
Patch Set: revise parseTopLevelDeclaration and address comments Created 3 years, 3 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/front_end/lib/src/scanner/token.dart ('k') | pkg/front_end/test/token_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/messages.yaml
diff --git a/pkg/front_end/messages.yaml b/pkg/front_end/messages.yaml
index 41f982fbd62447a98a3c80938d37432214a3b5ae..23e3fd5a40c3b5d73ab442107627543ccac0a156 100644
--- a/pkg/front_end/messages.yaml
+++ b/pkg/front_end/messages.yaml
@@ -201,6 +201,16 @@ ExtraneousModifier:
- "static foo; main(){}"
- "external foo; main(){}"
- "class C {abstract C.c();}"
+ - "final class C {}"
+ - "abstract enum foo {bar}"
+ - "const enum foo {bar}"
+ - "final enum foo {bar}"
+ - "abstract void foo() {}"
+ - "static void foo() {}"
+ - "abstract typedef foo();"
+ - "const typedef foo();"
+ - "final typedef foo();"
+ - "static typedef foo();"
InvalidAwaitFor:
template: "'await' is only supported in methods with an 'async' or 'async*' body modifier."
« no previous file with comments | « pkg/front_end/lib/src/scanner/token.dart ('k') | pkg/front_end/test/token_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698