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

Unified Diff: tests/compiler/dart2js/expect_annotations_test.dart

Issue 2278213003: Rename the global inference task and reduce it's API surface by introducing the (Closed)
Patch Set: cl comments Created 4 years, 4 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
Index: tests/compiler/dart2js/expect_annotations_test.dart
diff --git a/tests/compiler/dart2js/expect_annotations_test.dart b/tests/compiler/dart2js/expect_annotations_test.dart
index 7c4605a464af943bfba075f96c8f3285e797d22b..8e2abcdccfd376bf73fb427ffae9e42772e4b062 100644
--- a/tests/compiler/dart2js/expect_annotations_test.dart
+++ b/tests/compiler/dart2js/expect_annotations_test.dart
@@ -94,17 +94,18 @@ main() {
expectAssumeDynamic,
backend.annotations.assumeDynamic(method),
"Unexpected annotation of @AssumeDynamic on '$method'.");
- TypesInferrer inferrer = compiler.typesTask.typesInferrer;
+ TypesInferrer inferrer = compiler.globalInference.typesInferrer;
if (expectTrustTypeAnnotations && expectedParameterType != null) {
testTypeMatch(method, expectedParameterType, expectedReturnType,
inferrer);
} else if (expectAssumeDynamic) {
- testTypeMatch(method, compiler.typesTask.dynamicType, null, inferrer);
+ testTypeMatch(method,
+ compiler.commonMasks.dynamicType, null, inferrer);
}
}
- TypeMask jsStringType = compiler.typesTask.stringType;
- TypeMask jsIntType = compiler.typesTask.intType;
+ TypeMask jsStringType = compiler.commonMasks.stringType;
+ TypeMask jsIntType = compiler.commonMasks.intType;
TypeMask coreStringType = new TypeMask.subtype(
compiler.coreClasses.stringClass, compiler.world);
« no previous file with comments | « tests/compiler/dart2js/dictionary_types_test.dart ('k') | tests/compiler/dart2js/field_type_simple_inferer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698