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

Unified Diff: pkg/analyzer/tool/summary/mini_ast.dart

Issue 2985703002: new handleInvalidTopLevelDeclaration event in fasta parser (Closed)
Patch Set: cleanup forwarding listener - enclosingEvent 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/analyzer/tool/summary/mini_ast.dart
diff --git a/pkg/analyzer/tool/summary/mini_ast.dart b/pkg/analyzer/tool/summary/mini_ast.dart
index 1be9a900958c0d9c50b0e41903313eaaf5e6cb96..b0c259c9d5baf74524ef5282f11942b2fb108844 100644
--- a/pkg/analyzer/tool/summary/mini_ast.dart
+++ b/pkg/analyzer/tool/summary/mini_ast.dart
@@ -403,6 +403,12 @@ class MiniAstBuilder extends StackListener {
}
}
+ @override
+ void handleInvalidTopLevelDeclaration(Token beginToken, Token endToken) {
+ debugEvent("InvalidTopLevelDeclaration");
+ pop(); // metadata star
+ }
+
void handleLiteralInt(Token token) {
debugEvent("LiteralInt");
push(new IntegerLiteral(int.parse(token.lexeme)));

Powered by Google App Engine
This is Rietveld 408576698