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

Unified Diff: pkg/front_end/lib/src/fasta/parser/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
« no previous file with comments | « pkg/compiler/lib/src/parser/node_listener.dart ('k') | 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 9690f9c09dff5009c77caf5985b0007246beeb2c..cf593707ba667256f50549309facba3f41fc13df 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -712,6 +712,17 @@ class Listener {
logEvent("TopLevelDeclaration");
}
+ /// Called by the [Parser] when it recovers from an invalid top level
+ /// declaration, where [endToken] is the last token in the declaration
+ /// This is called after the begin/end metadata star events,
+ /// and is followed by [endTopLevelDeclaration].
+ ///
+ /// Substructures:
+ /// - metadata
+ void handleInvalidTopLevelDeclaration(Token endToken) {
+ logEvent("InvalidTopLevelDeclaration");
+ }
+
/// Marks the beginning of a top level field or method declaration.
/// Doesn't have a corresponding end event.
/// See [endTopLevelFields] and [endTopLevelMethod].
« no previous file with comments | « pkg/compiler/lib/src/parser/node_listener.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