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

Unified Diff: pkg/front_end/lib/src/fasta/source/outline_builder.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/outline_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/source/outline_builder.dart b/pkg/front_end/lib/src/fasta/source/outline_builder.dart
index a5d08dd00323c0a8d710fdd8d2507f562f32b250..94738758aaf84b70dc9734621ad2d05af68e40b7 100644
--- a/pkg/front_end/lib/src/fasta/source/outline_builder.dart
+++ b/pkg/front_end/lib/src/fasta/source/outline_builder.dart
@@ -346,7 +346,7 @@ class OutlineBuilder extends UnhandledListener {
}
@override
- void endType(Token beginToken, Token endToken) {
+ void handleType(Token beginToken, Token endToken) {
debugEvent("Type");
List<TypeBuilder> arguments = pop();
String name = pop();
@@ -459,7 +459,8 @@ class OutlineBuilder extends UnhandledListener {
}
@override
- void endFunctionTypeAlias(Token typedefKeyword, Token endToken) {
+ void endFunctionTypeAlias(
+ Token typedefKeyword, Token equals, Token endToken) {
debugEvent("endFunctionTypeAlias");
List<FormalParameterBuilder> formals = pop();
List<TypeVariableBuilder> typeVariables = pop();

Powered by Google App Engine
This is Rietveld 408576698