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

Unified Diff: pkg/front_end/example/incremental_reload/compiler_with_invalidation.dart

Issue 2926933002: Skip directly to the last library to set the entry point and check importUri (Closed)
Patch Set: fix 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 | « no previous file | pkg/front_end/lib/src/incremental_kernel_generator_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/example/incremental_reload/compiler_with_invalidation.dart
diff --git a/pkg/front_end/example/incremental_reload/compiler_with_invalidation.dart b/pkg/front_end/example/incremental_reload/compiler_with_invalidation.dart
index 3951e00712dceea6ef441fd305fccdbfbecd2bee..3a299cb6bff08fa4fb0598a26205b18cfe3b3cd8 100644
--- a/pkg/front_end/example/incremental_reload/compiler_with_invalidation.dart
+++ b/pkg/front_end/example/incremental_reload/compiler_with_invalidation.dart
@@ -157,13 +157,7 @@ Future<CompilationResult> rebuild(
try {
var program = result.program = await compiler.recompile();
if (program != null && !program.libraries.isEmpty) {
- // TODO(sigmund): the incremental generator should set the main method
- // directly.
- var mainLib = program.libraries.last;
- program.mainMethod =
- mainLib.procedures.firstWhere((p) => p.name.name == 'main');
var sink = new File.fromUri(outputUri).openWrite();
-
// TODO(sigmund): should the incremental generator always filter these
// libraries instead?
new LimitedBinaryPrinter(
« no previous file with comments | « no previous file | pkg/front_end/lib/src/incremental_kernel_generator_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698