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

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

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/lib/src/fasta/parser/listener.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/listener.dart b/pkg/front_end/lib/src/fasta/parser/listener.dart
index ed125679f62da83f9674fea6f676755c2725356f..d231d166252894cc6543094782f948f314a585c6 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -86,6 +86,9 @@ class Listener {
/// Called before parsing a class or named mixin application.
void beginClassOrNamedMixinApplication(Token token) {}
+ /// Handle the beginning of a class declaration.
+ /// [beginToken] may be the same as [name], or may point to modifiers
+ /// (or extraneous modifiers in the case of recovery) preceding [name].
void beginClassDeclaration(Token beginToken, Token name) {}
/// Handle the end of a class declaration. Substructures:
@@ -372,6 +375,9 @@ class Listener {
logEvent("MixinApplication");
}
+ /// Handle the beginning of a named mixin application.
+ /// [beginToken] may be the same as [name], or may point to modifiers
+ /// (or extraneous modifiers in the case of recovery) preceding [name].
void beginNamedMixinApplication(Token beginToken, Token name) {}
/// Handle the end of a named mixin declaration. Substructures:

Powered by Google App Engine
This is Rietveld 408576698