OLD | NEW |
---|---|
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library dart2js.cmdline; | 5 library dart2js.cmdline; |
6 | 6 |
7 import 'dart:async' | 7 import 'dart:async' |
8 show Future, EventSink; | 8 show Future, EventSink; |
9 import 'dart:convert' show UTF8, LineSplitter; | 9 import 'dart:convert' show UTF8, LineSplitter; |
10 import 'dart:io' | 10 import 'dart:io' |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
162 argument == '--output-type=dart-multi') { | 162 argument == '--output-type=dart-multi') { |
163 outputLanguage = OUTPUT_LANGUAGE_DART; | 163 outputLanguage = OUTPUT_LANGUAGE_DART; |
164 if (!explicitOut) { | 164 if (!explicitOut) { |
165 out = currentDirectory.resolve('out.dart'); | 165 out = currentDirectory.resolve('out.dart'); |
166 sourceMapOut = currentDirectory.resolve('out.dart.map'); | 166 sourceMapOut = currentDirectory.resolve('out.dart.map'); |
167 } | 167 } |
168 } | 168 } |
169 passThrough(argument); | 169 passThrough(argument); |
170 } | 170 } |
171 | 171 |
172 String getDepsOutput(Map<String, SourceFile> sourceFiles) { | 172 String getDepsOutput(Map<Uri, SourceFile> sourceFiles) { |
173 var filenames = new List.from(sourceFiles.keys); | 173 var filenames = new List.from(sourceFiles.keys.map((uri) => '$uri')); |
floitsch
2015/02/13 13:46:03
since you don't use the generic argument from List
Johnni Winther
2015/02/13 13:55:49
Done.
| |
174 filenames.sort(); | 174 filenames.sort(); |
175 return filenames.join("\n"); | 175 return filenames.join("\n"); |
176 } | 176 } |
177 | 177 |
178 setStrip(String argument) { | 178 setStrip(String argument) { |
179 optionsImplyCompilation.add(argument); | 179 optionsImplyCompilation.add(argument); |
180 stripArgumentSet = true; | 180 stripArgumentSet = true; |
181 passThrough(argument); | 181 passThrough(argument); |
182 } | 182 } |
183 | 183 |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
717 } else if (exitCode == 253) { | 717 } else if (exitCode == 253) { |
718 print(">>> TEST CRASH"); | 718 print(">>> TEST CRASH"); |
719 } else { | 719 } else { |
720 print(">>> TEST FAIL"); | 720 print(">>> TEST FAIL"); |
721 } | 721 } |
722 stderr.writeln(">>> EOF STDERR"); | 722 stderr.writeln(">>> EOF STDERR"); |
723 subscription.resume(); | 723 subscription.resume(); |
724 }); | 724 }); |
725 }); | 725 }); |
726 } | 726 } |
OLD | NEW |