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

Unified Diff: pkg/front_end/lib/src/fasta/source/diet_listener.dart

Issue 2985703002: new handleInvalidTopLevelDeclaration event in fasta parser (Closed)
Patch Set: rebase and address comment 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/source/diet_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/diet_listener.dart b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
index e4ecf54f6b58b189e4877ec8ee533a09b0235fad..77470dfde3346f3c1540e6bd7cad481a473889ed 100644
--- a/pkg/front_end/lib/src/fasta/source/diet_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
@@ -100,6 +100,12 @@ class DietListener extends StackListener {
discard(1); // Metadata.
}
+ @override
+ void handleInvalidTopLevelDeclaration(Token beginToken) {
+ debugEvent("InvalidTopLevelDeclaration");
+ pop(); // metadata star
+ }
+
@override
void handleNoArguments(Token token) {
debugEvent("NoArguments");
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | pkg/front_end/lib/src/fasta/source/outline_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698