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

Unified Diff: pkg/compiler/lib/src/resolution/signatures.dart

Issue 1976213002: Adjusts dart2js backend to handle method type arguments. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Made MethodTypeVariableType malformed, eliminated malformMethodTypeVariableType Created 4 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/compiler/lib/src/resolution/signatures.dart
diff --git a/pkg/compiler/lib/src/resolution/signatures.dart b/pkg/compiler/lib/src/resolution/signatures.dart
index 33a8f2f336bb0a62d8683a7c5e32d3a580581636..d3f3264e06a649e3dd7d7797e83ffc431c9934a0 100644
--- a/pkg/compiler/lib/src/resolution/signatures.dart
+++ b/pkg/compiler/lib/src/resolution/signatures.dart
@@ -314,10 +314,12 @@ class SignatureResolver extends MappingVisitor<FormalElementX> {
nodes = nodes.tail;
TypeVariableElementX variableElement =
new TypeVariableElementX(variableName, element, index, node);
- // TODO(eernst): When type variables are implemented fully we will need
- // to resolve the actual bounds; currently we just claim [dynamic].
+ // GENERIC_METHODS: When method type variables are implemented fully we
+ // must resolve the actual bounds; currently we just claim that
+ // every method type variable has upper bound [dynamic].
variableElement.boundCache = const DynamicType();
- TypeVariableType variableType = new TypeVariableType(variableElement);
+ TypeVariableType variableType =
+ new MethodTypeVariableType(variableElement);
variableElement.typeCache = variableType;
return variableType;
}, growable: false);

Powered by Google App Engine
This is Rietveld 408576698