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

Unified Diff: pkg/compiler/lib/src/deferred_load.dart

Issue 830703004: Emit to StreamCodeOutput instead of CodeBuffer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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: pkg/compiler/lib/src/deferred_load.dart
diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart
index f11b6545e07036c08ab9558dca600908930a6545..1ea489bfdcf0b2d4e95fd428ac2d52f6edb878af 100644
--- a/pkg/compiler/lib/src/deferred_load.dart
+++ b/pkg/compiler/lib/src/deferred_load.dart
@@ -74,10 +74,15 @@ class OutputUnit {
/// loaded.
final Setlet<Import> imports = new Setlet<Import>();
+ /// `true` is this the output unit for the main output file.
floitsch 2015/01/09 16:35:19 Not english.
Johnni Winther 2015/01/13 08:53:05 Done.
+ final bool isMainOutput;
+
/// A unique name representing this [OutputUnit].
/// Based on the set of [imports].
String name;
+ OutputUnit({this.isMainOutput: false});
+
String toString() => "OutputUnit($name)";
bool operator==(OutputUnit other) {
@@ -110,7 +115,7 @@ class DeferredLoadTask extends CompilerTask {
new LiteralDartString("main")), null, null, null);
/// The OutputUnit that will be loaded when the program starts.
- final OutputUnit mainOutputUnit = new OutputUnit();
+ final OutputUnit mainOutputUnit = new OutputUnit(isMainOutput: true);
/// A set containing (eventually) all output units that will result from the
/// program.

Powered by Google App Engine
This is Rietveld 408576698