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

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

Issue 2767543003: Add begin events for const and new expressions. (Closed)
Patch Set: Created 3 years, 9 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 b8a0294c4f2674d7e3e48a5d40e6e1ef5a5767e8..368ee3b361b25b7fe9a51d72286718e896bad785 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -789,7 +789,9 @@ class Listener {
logEvent("ConditionalExpression");
}
- void handleConstExpression(Token token) {
+ void beginConstExpression(Token constKeyword) {}
+
+ void endConstExpression(Token token) {
logEvent("ConstExpression");
}
@@ -886,7 +888,9 @@ class Listener {
logEvent("NamedArgument");
}
- void handleNewExpression(Token token) {
+ void beginNewExpression(Token token) {}
+
+ void endNewExpression(Token token) {
logEvent("NewExpression");
}
« 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