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

Unified Diff: pkg/compiler/lib/src/resolution/typedefs.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/compiler/lib/src/resolution/typedefs.dart
diff --git a/pkg/compiler/lib/src/resolution/typedefs.dart b/pkg/compiler/lib/src/resolution/typedefs.dart
index 90fc2c321b142b88b6e25a20dc40808872955631..6ed34dfe6019c7f802575201db380167164e74bc 100644
--- a/pkg/compiler/lib/src/resolution/typedefs.dart
+++ b/pkg/compiler/lib/src/resolution/typedefs.dart
@@ -27,12 +27,12 @@ class TypedefResolverVisitor extends TypeDefinitionVisitor {
visitTypedef(Typedef node) {
element.computeType(resolution);
scope = new TypeDeclarationScope(scope, element);
- resolveTypeVariableBounds(node.typeParameters);
+ resolveTypeVariableBounds(node.templateParameters);
FunctionSignature signature = SignatureResolver.analyze(
resolution,
scope,
- null /* typeVariables */,
+ node.typeParameters,
node.formals,
node.returnType,
element,

Powered by Google App Engine
This is Rietveld 408576698