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

Unified Diff: pkg/front_end/lib/src/fasta/source/outline_builder.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/outline_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/source/outline_builder.dart b/pkg/front_end/lib/src/fasta/source/outline_builder.dart
index 4645159441465b1ad4932c047277c124f5c16ffb..680c6022738c84db845bf54dcc38de1898d5c5f3 100644
--- a/pkg/front_end/lib/src/fasta/source/outline_builder.dart
+++ b/pkg/front_end/lib/src/fasta/source/outline_builder.dart
@@ -123,6 +123,12 @@ class OutlineBuilder extends UnhandledListener {
push(popList(count) ?? NullValue.Metadata);
}
+ @override
+ void handleInvalidTopLevelDeclaration(Token endToken) {
+ debugEvent("InvalidTopLevelDeclaration");
+ pop(); // metadata star
+ }
+
@override
void endHide(Token hideKeyword) {
debugEvent("Hide");
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/diet_listener.dart ('k') | pkg/front_end/lib/src/fasta/source/stack_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698