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

Unified Diff: pkg/analyzer/lib/src/dart/element/type.dart

Issue 2590883004: Put a TypeProvider on the TypeSystem implementations. (Closed)
Patch Set: Rebase Created 3 years, 11 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/constant/evaluation.dart ('k') | pkg/analyzer/lib/src/generated/constant.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/type.dart
diff --git a/pkg/analyzer/lib/src/dart/element/type.dart b/pkg/analyzer/lib/src/dart/element/type.dart
index 32a12a59ae540f02077b3229773710ac3fe008d0..58932c67539f040f586fbae66425e1e7ab8c7e09 100644
--- a/pkg/analyzer/lib/src/dart/element/type.dart
+++ b/pkg/analyzer/lib/src/dart/element/type.dart
@@ -828,7 +828,7 @@ class FunctionTypeImpl extends TypeImpl implements FunctionType {
type,
(DartType t, DartType s, _, __) =>
(t as TypeImpl).isMoreSpecificThan(s, withDynamic),
- new TypeSystemImpl().instantiateToBounds);
+ new TypeSystemImpl(null).instantiateToBounds);
}
@override
@@ -837,7 +837,7 @@ class FunctionTypeImpl extends TypeImpl implements FunctionType {
this,
type,
(DartType t, DartType s, _, __) => t.isAssignableTo(s),
- new TypeSystemImpl().instantiateToBounds);
+ new TypeSystemImpl(null).instantiateToBounds);
}
@override
@@ -1945,7 +1945,7 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
//
if (element.library.context.analysisOptions.strongMode) {
TypeImpl t = newTypeArguments[0];
- newTypeArguments[0] = t.flattenFutures(new StrongTypeSystemImpl());
+ newTypeArguments[0] = t.flattenFutures(new StrongTypeSystemImpl(null));
}
}
@@ -2148,8 +2148,7 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
return _leastUpperBound(first, second);
}
AnalysisContext context = first.element.context;
- return context.typeSystem
- .getLeastUpperBound(context.typeProvider, first, second);
+ return context.typeSystem.getLeastUpperBound(first, second);
}
/**
« no previous file with comments | « pkg/analyzer/lib/src/dart/constant/evaluation.dart ('k') | pkg/analyzer/lib/src/generated/constant.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698