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

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

Issue 2730093002: Avoid crashing on function syntax. (Closed)
Patch Set: Update status. Created 3 years, 10 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/stack_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/stack_listener.dart b/pkg/front_end/lib/src/fasta/source/stack_listener.dart
index 97938777fc551813e5f56bac370aa3e2fe41f285..3f48e82f9fde5d82d94fe72687c595903bced59a 100644
--- a/pkg/front_end/lib/src/fasta/source/stack_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/stack_listener.dart
@@ -33,6 +33,7 @@ enum NullValue {
FunctionBody,
FunctionBodyAsyncToken,
FunctionBodyStarToken,
+ Identifier,
IdentifierList,
Initializers,
Metadata,
@@ -113,6 +114,12 @@ abstract class StackListener extends Listener {
}
@override
+ void handleNoName(Token token) {
+ debugEvent("NoName");
+ push(NullValue.Identifier);
+ }
+
+ @override
void endInitializer(Token token) {
debugEvent("Initializer");
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/source_library_builder.dart ('k') | pkg/front_end/test/fasta/compile.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698