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

Unified Diff: pkg/analyzer/lib/src/summary/link.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/generated/type_system.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/link.dart
diff --git a/pkg/analyzer/lib/src/summary/link.dart b/pkg/analyzer/lib/src/summary/link.dart
index 7684f56fbab9ce201a0a9647c68855a37cc4b1d0..e261675b485dec79507eb4912905ad22a4b666ca 100644
--- a/pkg/analyzer/lib/src/summary/link.dart
+++ b/pkg/analyzer/lib/src/summary/link.dart
@@ -2556,13 +2556,8 @@ class ExprTypeComputer {
}
});
// Perform inference.
- FunctionType inferred = ts.inferGenericFunctionCall(
- typeProvider,
- rawMethodType,
- paramTypes,
- argTypes,
- rawMethodType.returnType,
- null);
+ FunctionType inferred = ts.inferGenericFunctionCall(rawMethodType,
+ paramTypes, argTypes, rawMethodType.returnType, null);
return inferred;
}
}
@@ -2571,7 +2566,7 @@ class ExprTypeComputer {
}
DartType _leastUpperBound(DartType s, DartType t) {
- return linker.typeSystem.getLeastUpperBound(typeProvider, s, t);
+ return linker.typeSystem.getLeastUpperBound(s, t);
}
List<DartType> _popList(int n) {
@@ -2587,8 +2582,8 @@ class ExprTypeComputer {
left.lookUpInheritedMethod(operator.lexeme, library: library);
if (method != null) {
DartType type = method.returnType;
- type = linker.typeSystem.refineBinaryExpressionType(
- typeProvider, left, operator, right, type);
+ type = linker.typeSystem
+ .refineBinaryExpressionType(left, operator, right, type);
stack.add(type);
return;
}
@@ -3654,8 +3649,9 @@ class Linker {
/**
* Get an instance of [TypeSystem] for use during linking.
*/
- TypeSystem get typeSystem => _typeSystem ??=
- strongMode ? new StrongTypeSystemImpl() : new TypeSystemImpl();
+ TypeSystem get typeSystem => _typeSystem ??= strongMode
+ ? new StrongTypeSystemImpl(typeProvider)
+ : new TypeSystemImpl(typeProvider);
/**
* Get the element representing `void`.
« no previous file with comments | « pkg/analyzer/lib/src/generated/type_system.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698