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

Unified Diff: tests/compiler/dart2js/kernel/impact_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/kernel/helper.dart ('k') | tests/compiler/dart2js/mirrors_used_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/kernel/impact_test.dart
diff --git a/tests/compiler/dart2js/kernel/impact_test.dart b/tests/compiler/dart2js/kernel/impact_test.dart
index cadae7bded54be1375acab8f4b6057dfddc1cbdb..9aee8524ff1a0b3494c90ce388e7bf9177a79c49 100644
--- a/tests/compiler/dart2js/kernel/impact_test.dart
+++ b/tests/compiler/dart2js/kernel/impact_test.dart
@@ -12,6 +12,7 @@ import 'package:compiler/src/common/resolution.dart';
import 'package:compiler/src/compiler.dart';
import 'package:compiler/src/constants/expressions.dart';
import 'package:compiler/src/elements/elements.dart';
+import 'package:compiler/src/elements/entities.dart';
import 'package:compiler/src/elements/resolution_types.dart';
import 'package:compiler/src/js_backend/backend.dart';
import 'package:compiler/src/kernel/element_map.dart';
@@ -748,10 +749,11 @@ main(List<String> args) {
new KernelToElementMapImpl(compiler.reporter, compiler.environment);
kernelElementMap.addProgram(backend.kernelTask.program);
- checkLibrary(compiler, kernelElementMap, compiler.mainApp,
- fullTest: fullTest);
- compiler.libraryLoader.libraries.forEach((library) {
- if (library == compiler.mainApp) return;
+ LibraryElement mainApp =
+ compiler.frontendStrategy.elementEnvironment.mainLibrary;
+ checkLibrary(compiler, kernelElementMap, mainApp, fullTest: fullTest);
+ compiler.libraryLoader.libraries.forEach((LibraryEntity library) {
+ if (library == mainApp) return;
checkLibrary(compiler, kernelElementMap, library, fullTest: fullTest);
});
});
« no previous file with comments | « tests/compiler/dart2js/kernel/helper.dart ('k') | tests/compiler/dart2js/mirrors_used_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698