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

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

Issue 1878253002: Adds support for remaining generic method syntax constructs. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Review response Created 4 years, 8 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/node_listener.dart
diff --git a/pkg/compiler/lib/src/parser/node_listener.dart b/pkg/compiler/lib/src/parser/node_listener.dart
index df288b6edb6be3c3a532baa01158e24efa171ace..cd9db993d9942131abcb1c4472354f9840c3d80e 100644
--- a/pkg/compiler/lib/src/parser/node_listener.dart
+++ b/pkg/compiler/lib/src/parser/node_listener.dart
@@ -566,6 +566,7 @@ class NodeListener extends ElementListener {
void handleFunctionTypedFormalParameter(Token endToken) {
NodeList formals = popNode();
+ popNode(); // typeVariables
Identifier name = popNode();
TypeAnnotation returnType = popNode();
pushNode(null); // Signal "no type" to endFormalParameter.
@@ -755,6 +756,7 @@ class NodeListener extends ElementListener {
Statement body = popNode();
AsyncModifier asyncModifier = popNode();
NodeList formals = popNode();
+ popNode(); // typeVariables
pushNode(new FunctionExpression(
null, formals, body, null, Modifiers.EMPTY, null, null, asyncModifier));
}

Powered by Google App Engine
This is Rietveld 408576698