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

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: 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/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 4549589d4596b52b14b563dabd06e9a3170f4987..7692e18d626e8a5d85c87628487df9753dcf629e 100644
--- a/pkg/front_end/lib/src/fasta/source/outline_builder.dart
+++ b/pkg/front_end/lib/src/fasta/source/outline_builder.dart
@@ -401,13 +401,13 @@ class OutlineBuilder extends UnhandledListener {
}
@override
- void beginFunctionTypeAlias(Token token) {
+ void beginTypedef(Token token) {
library.beginNestedScope();
}
@override
- void endFunctionTypeAlias(Token typedefKeyword, Token endToken) {
- debugEvent("endFunctionTypeAlias");
+ void endTypedef(Token typedefKeyword, Token equals, Token endToken) {
+ debugEvent("endTypedef");
List<FormalParameterBuilder> formals = pop();
List<TypeVariableBuilder> typeVariables = pop();
String name = pop();

Powered by Google App Engine
This is Rietveld 408576698