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( |