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

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

Issue 2963473004: Generate type variable events before parsing return type. (Closed)
Patch Set: Created 3 years, 6 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 28f4f0af2e68a7052f5b82e8578a5d169cf232fa..2aea11001153f7a3c0e5dae4280a765afbc8922e 100644
--- a/pkg/compiler/lib/src/parser/node_listener.dart
+++ b/pkg/compiler/lib/src/parser/node_listener.dart
@@ -179,8 +179,8 @@ class NodeListener extends ElementListener {
@override
void endFunctionType(Token functionToken, Token endToken) {
NodeList formals = popNode();
- NodeList typeParameters = popNode();
TypeAnnotation returnType = popNode();
+ NodeList typeParameters = popNode();
pushNode(new FunctionTypeAnnotation(
returnType, functionToken, typeParameters, formals));
}
« no previous file with comments | « pkg/compiler/lib/src/parser/element_listener.dart ('k') | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698