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

Unified Diff: pkg/analyzer/lib/src/generated/constant.dart

Issue 1758913002: Add instantiate method on ParameterizedType and InterfaceType. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 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
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/type.dart ('k') | pkg/analyzer/lib/src/generated/error_verifier.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/constant.dart
diff --git a/pkg/analyzer/lib/src/generated/constant.dart b/pkg/analyzer/lib/src/generated/constant.dart
index 8d4de8ec85a4338c55205d060cb2eb2aaf793a36..db35618bd5e82e027f513f08ea46d02605224150 100644
--- a/pkg/analyzer/lib/src/generated/constant.dart
+++ b/pkg/analyzer/lib/src/generated/constant.dart
@@ -1734,7 +1734,7 @@ class ConstantVisitor extends UnifyingAstVisitor<DartObjectImpl> {
elementType = type;
}
}
- InterfaceType listType = _typeProvider.listType.substitute4([elementType]);
+ InterfaceType listType = _typeProvider.listType.instantiate([elementType]);
return new DartObjectImpl(listType, new ListState(elements));
}
@@ -1774,7 +1774,7 @@ class ConstantVisitor extends UnifyingAstVisitor<DartObjectImpl> {
}
}
InterfaceType mapType =
- _typeProvider.mapType.substitute4([keyType, valueType]);
+ _typeProvider.mapType.instantiate([keyType, valueType]);
return new DartObjectImpl(mapType, new MapState(map));
}
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/type.dart ('k') | pkg/analyzer/lib/src/generated/error_verifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698