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

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

Issue 2704163002: Add handleNoVariableInitializer event. (Closed)
Patch Set: Created 3 years, 10 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 897a754608819c9a83e200cb0d84845179b09326..174b4def0bba095c59db0730559c365392b766f6 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -352,10 +352,17 @@ class Listener {
void beginVariableInitializer(Token token) {}
+ /// Handle the end of a variable initializer. Substructures:
+ /// - Initializer expression.
void endVariableInitializer(Token assignmentOperator) {
logEvent("VariableInitializer");
}
+ /// Used when a variable has no initializer.
+ void handleNoVariableInitializer(Token token) {
+ logEvent("NoVariableInitializer");
+ }
+
void beginInitializer(Token token) {}
void endInitializer(Token token) {
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.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