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

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

Issue 2488353004: Remove Compiler access from ResolutionEnqueuer (Closed)
Patch Set: Created 4 years, 1 month 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/type_inference_switch_test.dart
diff --git a/tests/compiler/dart2js/type_inference_switch_test.dart b/tests/compiler/dart2js/type_inference_switch_test.dart
index bac1abd328ef7c910f2cd2245dd13f21af55cbba..181fc4156e5b8d99391848432aa28fc3b828d351 100644
--- a/tests/compiler/dart2js/type_inference_switch_test.dart
+++ b/tests/compiler/dart2js/type_inference_switch_test.dart
@@ -135,15 +135,15 @@ Future runTest(String test, checker) {
var compiler = compilerFor(test, uri);
checkTypeOf(String name, TypeMask type) {
- var commonMasks = compiler.commonMasks;
- var typesInferrer = compiler.globalInference.typesInferrer;
+ var commonMasks = compiler.closedWorld.commonMasks;
+ var typesInferrer = compiler.globalInference.typesInferrerInternal;
var element = findElement(compiler, name);
var mask = typesInferrer.getReturnTypeOfElement(element);
Expect.equals(type, simplify(mask, compiler));
}
return compiler.run(uri).then((_) {
- checker(compiler.commonMasks, checkTypeOf);
+ checker(compiler.closedWorld.commonMasks, checkTypeOf);
});
}

Powered by Google App Engine
This is Rietveld 408576698