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

Unified Diff: pkg/analyzer/lib/src/summary/summary_sdk.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/summary/resynthesize.dart ('k') | pkg/analyzer/lib/src/task/strong/checker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/summary_sdk.dart
diff --git a/pkg/analyzer/lib/src/summary/summary_sdk.dart b/pkg/analyzer/lib/src/summary/summary_sdk.dart
index ad422cafca68cc8fa486eaf6e260ba904f514629..cd6c52e4fc77c76a4831390cdfff45be4665fa55 100644
--- a/pkg/analyzer/lib/src/summary/summary_sdk.dart
+++ b/pkg/analyzer/lib/src/summary/summary_sdk.dart
@@ -371,9 +371,9 @@ class SummaryTypeProvider implements TypeProvider {
_isAsyncInitialized = true;
_futureType = _getType(library, "Future");
_streamType = _getType(library, "Stream");
- _futureDynamicType = _futureType.substitute4(<DartType>[dynamicType]);
- _futureNullType = _futureType.substitute4(<DartType>[_nullType]);
- _streamDynamicType = _streamType.substitute4(<DartType>[dynamicType]);
+ _futureDynamicType = _futureType.instantiate(<DartType>[dynamicType]);
+ _futureNullType = _futureType.instantiate(<DartType>[_nullType]);
+ _streamDynamicType = _streamType.instantiate(<DartType>[dynamicType]);
}
/**
@@ -398,7 +398,7 @@ class SummaryTypeProvider implements TypeProvider {
_stringType = _getType(library, "String");
_symbolType = _getType(library, "Symbol");
_typeType = _getType(library, "Type");
- _iterableDynamicType = _iterableType.substitute4(<DartType>[dynamicType]);
+ _iterableDynamicType = _iterableType.instantiate(<DartType>[dynamicType]);
}
/**
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | pkg/analyzer/lib/src/task/strong/checker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698