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

Unified Diff: pkg/front_end/lib/src/fasta/source/unhandled_listener.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/front_end/lib/src/fasta/source/unhandled_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/unhandled_listener.dart b/pkg/front_end/lib/src/fasta/source/unhandled_listener.dart
index ed72851a426fc21f3ec06534ba3ac5e06ce6635e..448b8e09dd07a7b514001846d1c770fac4afe679 100644
--- a/pkg/front_end/lib/src/fasta/source/unhandled_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/unhandled_listener.dart
@@ -36,6 +36,12 @@ abstract class UnhandledListener extends StackListener {
}
@override
+ void handleInvalidTopLevelDeclaration(Token beginToken, Token endToken) {
ahe 2017/08/07 13:31:00 We're supposed to get rid of this class, so I don'
danrubel 2017/08/15 20:13:32 Yeah. The class name and the class dartdoc should
+ debugEvent("InvalidTopLevelDeclaration");
+ pop(); // metadata star
+ }
+
+ @override
void endConditionalUri(Token ifKeyword, Token equalitySign) {
debugEvent("ConditionalUri");
popCharOffset();

Powered by Google App Engine
This is Rietveld 408576698