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

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

Issue 2948383002: Remove peeking from parseTypedef and parseClassOrNamedMixinApplication. (Closed)
Patch Set: Addressed comments and then some. Created 3 years, 6 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 5bdf5e947c2462e07db4d2ebafbf4e100eae7f85..1045c3f3303e25473be28428339778c126d103f7 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -77,6 +77,9 @@ class Listener {
logEvent("ClassBody");
}
+ /// Called before parsing a class or named mixin application.
+ void beginClassOrNamedMixinApplication(Token token) {}
+
void beginClassDeclaration(Token beginToken, Token name) {}
/// Handle the end of a class declaration. Substructures:
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/identifier_context.dart ('k') | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698