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

Unified Diff: lib/src/rastask.dart

Issue 2408333006: Add support for not generating a .dill file. (Closed)
Patch Set: Created 4 years, 2 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 | « lib/src/options.dart ('k') | lib/testing/rasta_chain.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/rastask.dart
diff --git a/lib/src/rastask.dart b/lib/src/rastask.dart
index 19064847024df51c91275c384b96824a1a642d60..db5aceb7e27b7bd9d340e87bcaf27ce76f66ce0e 100644
--- a/lib/src/rastask.dart
+++ b/lib/src/rastask.dart
@@ -118,20 +118,22 @@ abstract class Rastask extends CompilerTask {
program.mainMethod = mainMethods.single;
}
compiler.printVerboseTimings(setupDuration);
- if (options.output != null) {
- await openWrite(options.output, (IOSink sink) {
- BinaryPrinter printer = new BinaryPrinter(sink);
- printer.writeProgramFile(program);
- });
- } else {
- StringBuffer buffer = new StringBuffer();
- Printer printer = new Printer(buffer);
- if (generateLibrary) {
- printer.writeLibraryFile(library);
+ if (!options.noOutput) {
+ if (options.output != null) {
+ await openWrite(options.output, (IOSink sink) {
+ BinaryPrinter printer = new BinaryPrinter(sink);
+ printer.writeProgramFile(program);
+ });
} else {
- printer.writeProgramFile(program);
+ StringBuffer buffer = new StringBuffer();
+ Printer printer = new Printer(buffer);
+ if (generateLibrary) {
+ printer.writeLibraryFile(library);
+ } else {
+ printer.writeProgramFile(program);
+ }
+ print("$buffer");
}
- print("$buffer");
}
if (options.dependenciesFile != null) {
« no previous file with comments | « lib/src/options.dart ('k') | lib/testing/rasta_chain.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698