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

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

Issue 2900993002: New parser event needed to check case expressions. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 95a35ea679bf3c828d6b9c78443908b9e55a6100..47cb4ff3e848f33bd8bee01a9846d7e7b76c0545 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -65,6 +65,12 @@ class Listener {
logEvent("Cascade");
}
+ void beginCaseExpression(Token caseKeyword) {}
+
+ void endCaseExpression(Token colon) {
+ logEvent("CaseExpression");
+ }
+
void beginClassBody(Token token) {}
/// Handle the end of the body of a class declaration. The only substructures
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698