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

Unified Diff: tests/compiler/dart2js/constant_expression_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
Index: tests/compiler/dart2js/constant_expression_test.dart
diff --git a/tests/compiler/dart2js/constant_expression_test.dart b/tests/compiler/dart2js/constant_expression_test.dart
index d8f582c5c412a746fbd1236da061e31e6e25be5f..023c932220c6b6b1bb3fdca0b6f12587c2dc5b28 100644
--- a/tests/compiler/dart2js/constant_expression_test.dart
+++ b/tests/compiler/dart2js/constant_expression_test.dart
@@ -210,7 +210,7 @@ Future testData(TestData data) async {
memorySourceFiles: {'main.dart': source}, options: ['--analyze-all']);
Compiler compiler = result.compiler;
MemoryEnvironment environment = new MemoryEnvironment(compiler);
- var library = compiler.mainApp;
+ var library = compiler.frontendStrategy.elementEnvironment.mainLibrary;
constants.forEach((String name, ConstantData data) {
FieldElement field = library.localLookup(name);
var constant = field.constant;
« no previous file with comments | « tests/compiler/dart2js/constant_expression_evaluate_test.dart ('k') | tests/compiler/dart2js/container_mask_equal_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698