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

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

Issue 2936233003: Remove Compiler.mainApp and Compiler.mainFunction (Closed)
Patch Set: Created 3 years, 6 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 | « tests/compiler/dart2js/type_combination_test.dart ('k') | tests/compiler/dart2js/type_test_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_representation_test.dart
diff --git a/tests/compiler/dart2js/type_representation_test.dart b/tests/compiler/dart2js/type_representation_test.dart
index 0a345a6b06873f3c61592df08b07f048031151a9..a2782c72fe2def902f7b71abac19fb53e72abdbe 100644
--- a/tests/compiler/dart2js/type_representation_test.dart
+++ b/tests/compiler/dart2js/type_representation_test.dart
@@ -44,7 +44,10 @@ void testTypeRepresentations() {
m9(int a, String b, {List<int> c, d}) {}
m10(void f(int a, [b])) {}
""").then((env) {
- var closedWorldRefiner = env.compiler.closeResolution();
+ var elementEnvironment =
+ env.compiler.frontendStrategy.elementEnvironment;
+ var closedWorldRefiner =
+ env.compiler.closeResolution(elementEnvironment.mainFunction);
var closedWorld = closedWorldRefiner.closedWorld;
env.compiler.enqueuer.createCodegenEnqueuer(closedWorld);
env.compiler.backend.onCodegenStart(
« no previous file with comments | « tests/compiler/dart2js/type_combination_test.dart ('k') | tests/compiler/dart2js/type_test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698