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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart

Issue 57433004: Re-land "Search for main in the exported names of the main library, not in the library itself." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix package1 test. Created 7 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: sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
index 1deab484f4229db115fa08a20db2404610c8c378..be1ffda5cb8cc819c129f9e4458acb226e1c2346 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
@@ -163,7 +163,7 @@ class PlaceholderCollector extends Visitor {
TreeElements treeElements;
LibraryElement get coreLibrary => compiler.coreLibrary;
- FunctionElement get entryFunction => compiler.mainApp.find(Compiler.MAIN);
+ FunctionElement get entryFunction => compiler.mainFunction;
DartBackend get backend => compiler.backend;
get currentFunctionScope => functionScopes.putIfAbsent(

Powered by Google App Engine
This is Rietveld 408576698