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

Unified Diff: pkg/front_end/messages.yaml

Issue 3007943002: gracefully recover from extraneous top level modifiers (Closed)
Patch Set: address comments Created 3 years, 4 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
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."

Powered by Google App Engine
This is Rietveld 408576698