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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart2js.dart

Issue 476583003: Allow dart2dart to output one file per library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address floitsch's comments Created 6 years, 4 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: sdk/lib/_internal/compiler/implementation/dart2js.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart
index 15f078c899b247bc2d0dffea8ffa454ee29c4ce5..877393adb9d7bd988f84f53ddeae7f627b3eaf1c 100644
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart
@@ -155,7 +155,8 @@ Future compile(List<String> argv) {
setOutputType(String argument) {
optionsImplyCompilation.add(argument);
- if (argument == '--output-type=dart') {
+ if (argument == '--output-type=dart' ||
+ argument == '--output-type=dart-multi') {
outputLanguage = OUTPUT_LANGUAGE_DART;
if (!explicitOut) {
out = currentDirectory.resolve('out.dart');
@@ -279,7 +280,9 @@ Future compile(List<String> argv) {
}),
new OptionHandler('--suppress-hints',
(_) => diagnosticHandler.showHints = false),
- new OptionHandler('--output-type=dart|--output-type=js', setOutputType),
+ new OptionHandler(
+ '--output-type=dart|--output-type=dart-multi|--output-type=js',
+ setOutputType),
new OptionHandler('--verbose', setVerbose),
new OptionHandler('--version', (_) => wantVersion = true),
new OptionHandler('--library-root=.+', setLibraryRoot),

Powered by Google App Engine
This is Rietveld 408576698