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

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: Fixes after rebase. 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 4b4f7f116c0ae89e6df9c83bb9fa9fc27b059dd0..e8029aa91db1749ae57949200bc678bc54359afd 100644
--- a/pkg/front_end/lib/src/fasta/source/diet_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
@@ -133,7 +133,7 @@ class DietListener extends StackListener {
}
@override
- void endType(Token beginToken, Token endToken) {
+ void handleType(Token beginToken, Token endToken) {
debugEvent("Type");
discard(1);
}
@@ -190,7 +190,8 @@ class DietListener extends StackListener {
}
@override
- void endFunctionTypeAlias(Token typedefKeyword, Token endToken) {
+ void endFunctionTypeAlias(
+ Token typedefKeyword, Token equals, Token endToken) {
debugEvent("FunctionTypeAlias");
discard(2); // Name + endToken.
checkEmpty(typedefKeyword.charOffset);

Powered by Google App Engine
This is Rietveld 408576698