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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_types.dart

Issue 119913002: Align source mirrors with runtime mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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: 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);
}

Powered by Google App Engine
This is Rietveld 408576698