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

Unified Diff: pkg/compiler/lib/src/parser/listener.dart

Issue 2567133002: Add support for the new function-type syntax. (Closed)
Patch Set: Remove obsolete named argument. Created 3 years, 12 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/compiler/lib/src/parser/listener.dart
diff --git a/pkg/compiler/lib/src/parser/listener.dart b/pkg/compiler/lib/src/parser/listener.dart
index b33bd84d2b2d4b2c9019ad806fc37ac1c27ef8bb..d3eab2f31433d97f3f90b3f51b168e4a705d2cc7 100644
--- a/pkg/compiler/lib/src/parser/listener.dart
+++ b/pkg/compiler/lib/src/parser/listener.dart
@@ -130,9 +130,9 @@ class Listener {
void endFunctionName(Token token) {}
- void beginFunctionTypeAlias(Token token) {}
+ void beginTypedef(Token token) {}
- void endFunctionTypeAlias(Token typedefKeyword, Token endToken) {}
+ void endTypedef(Token typedefKeyword, Token equals, Token endToken) {}
void beginMixinApplication(Token token) {}
@@ -295,6 +295,10 @@ class Listener {
void endType(Token beginToken, Token endToken) {}
+ void handleNoName(Token token) {}
+
+ void endFunctionType(Token functionToken, Token endToken) {}
+
void beginTypeArguments(Token token) {}
void endTypeArguments(int count, Token beginToken, Token endToken) {}

Powered by Google App Engine
This is Rietveld 408576698