Index: sdk/lib/_internal/compiler/implementation/dart_types.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/dart_types.dart b/sdk/lib/_internal/compiler/implementation/dart_types.dart |
index 56db7fa8c6fb88ee42960ea170c74df5d3fb1b7a..6036f9b48409718331e3fb66f3f447240aefc0f9 100644 |
--- a/sdk/lib/_internal/compiler/implementation/dart_types.dart |
+++ b/sdk/lib/_internal/compiler/implementation/dart_types.dart |
@@ -349,7 +349,7 @@ abstract class GenericType extends DartType { |
TypeDeclarationElement get element; |
/// Creates a new instance of this type using the provided type arguments. |
- GenericType _createType(Link<DartType> newTypeArguments); |
+ GenericType createInstantiation(Link<DartType> newTypeArguments); |
DartType subst(Link<DartType> arguments, Link<DartType> parameters) { |
if (typeArguments.isEmpty) { |
@@ -365,7 +365,7 @@ abstract class GenericType extends DartType { |
Types.substTypes(typeArguments, arguments, parameters); |
if (!identical(typeArguments, newTypeArguments)) { |
// Create a new type only if necessary. |
- return _createType(newTypeArguments); |
+ return createInstantiation(newTypeArguments); |
} |
return this; |
} |
@@ -448,7 +448,7 @@ class InterfaceType extends GenericType { |
String get name => element.name; |
- InterfaceType _createType(Link<DartType> newTypeArguments) { |
+ InterfaceType createInstantiation(Link<DartType> newTypeArguments) { |
return new InterfaceType(element, newTypeArguments); |
} |
@@ -776,7 +776,7 @@ class TypedefType extends GenericType { |
[Link<DartType> typeArguments = const Link<DartType>()]) |
: super(typeArguments); |
- TypedefType _createType(Link<DartType> newTypeArguments) { |
+ TypedefType createInstantiation(Link<DartType> newTypeArguments) { |
return new TypedefType(element, newTypeArguments); |
} |