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

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

Issue 2567133002: Add support for the new function-type syntax. (Closed)
Patch Set: Handle function types with `void` return type. 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/diet_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/diet_listener.dart b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
index 366f1c11c9ff01d5c10d77eef9393278a1545615..5193046b5f2b229d10b4bc986411541f595532b4 100644
--- a/pkg/front_end/lib/src/fasta/source/diet_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
@@ -189,8 +189,8 @@ class DietListener extends StackListener {
}
@override
- void endFunctionTypeAlias(Token typedefKeyword, Token endToken) {
- debugEvent("FunctionTypeAlias");
+ void endTypedef(Token typedefKeyword, Token equals, Token endToken) {
+ debugEvent("Typedef");
discard(2); // Name + endToken.
checkEmpty();
}

Powered by Google App Engine
This is Rietveld 408576698