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

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

Issue 2876813002: Implement generalized function types. (Closed)
Patch Set: Fixes for analyzer and dart2js. Created 3 years, 7 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/unhandled_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/unhandled_listener.dart b/pkg/front_end/lib/src/fasta/source/unhandled_listener.dart
index 8854f7ca8d2ca0a878f6b8d6fa0419b915438d05..df897146ff042350904b8eac160f6d9b067c7b75 100644
--- a/pkg/front_end/lib/src/fasta/source/unhandled_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/unhandled_listener.dart
@@ -79,4 +79,12 @@ abstract class UnhandledListener extends StackListener {
popIdentifierList(count);
push(Unhandled.DottedName);
}
+
+ @override
+ void handleFunctionType(Token functionToken, Token endToken) {
+ pop(); // Formals.
+ pop(); // Type variables.
+ pop(); // Return type.
+ push(NullValue.Type);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698