Index: sdk/lib/_internal/compiler/implementation/dart_types.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/dart_types.dart (revision 28922) |
+++ sdk/lib/_internal/compiler/implementation/dart_types.dart (working copy) |
@@ -669,6 +669,19 @@ |
return _findTypeVariableOccurrence(namedParameterTypes); |
} |
+ void forEachTypeVariable(f(TypeVariableType variable)) { |
Johnni Winther
2013/10/21 15:13:49
Good catch!
|
+ returnType.forEachTypeVariable(f); |
+ parameterTypes.forEach((DartType type) { |
+ type.forEachTypeVariable(f); |
+ }); |
+ optionalParameterTypes.forEach((DartType type) { |
+ type.forEachTypeVariable(f); |
+ }); |
+ namedParameterTypes.forEach((DartType type) { |
+ type.forEachTypeVariable(f); |
+ }); |
+ } |
+ |
accept(DartTypeVisitor visitor, var argument) { |
return visitor.visitFunctionType(this, argument); |
} |