| 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' show Future, EventSink; | 7 import 'dart:async' show Future; |
| 8 import 'dart:convert' show UTF8, LineSplitter; | 8 import 'dart:convert' show UTF8, LineSplitter; |
| 9 import 'dart:io' | 9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr; |
| 10 show | 10 |
| 11 exit, | 11 import 'package:package_config/discovery.dart' show findPackages; |
| 12 File, | |
| 13 FileMode, | |
| 14 Platform, | |
| 15 RandomAccessFile, | |
| 16 FileSystemException, | |
| 17 stdin, | |
| 18 stderr; | |
| 19 | 12 |
| 20 import '../compiler.dart' as api; | 13 import '../compiler.dart' as api; |
| 21 import 'commandline_options.dart'; | 14 import 'commandline_options.dart'; |
| 15 import 'filenames.dart'; |
| 22 import 'io/source_file.dart'; | 16 import 'io/source_file.dart'; |
| 23 import 'source_file_provider.dart'; | 17 import 'source_file_provider.dart'; |
| 24 import 'filenames.dart'; | 18 import 'util/command_line.dart'; |
| 25 import 'util/uri_extras.dart'; | 19 import 'util/uri_extras.dart'; |
| 26 import 'util/util.dart' show stackTraceFilePrefix; | 20 import 'util/util.dart' show stackTraceFilePrefix; |
| 27 import 'util/command_line.dart'; | |
| 28 import 'package:package_config/discovery.dart' show findPackages; | |
| 29 | 21 |
| 30 const String LIBRARY_ROOT = '../../../../../sdk'; | 22 const String LIBRARY_ROOT = '../../../../../sdk'; |
| 31 const String OUTPUT_LANGUAGE_DART = 'Dart'; | 23 const String OUTPUT_LANGUAGE_DART = 'Dart'; |
| 32 | 24 |
| 33 /** | 25 /** |
| 34 * A string to identify the revision or build. | 26 * A string to identify the revision or build. |
| 35 * | 27 * |
| 36 * This ID is displayed if the compiler crashes and in verbose mode, and is | 28 * This ID is displayed if the compiler crashes and in verbose mode, and is |
| 37 * an aid in reproducing bug reports. | 29 * an aid in reproducing bug reports. |
| 38 * | 30 * |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 } else if (exitCode == 253) { | 774 } else if (exitCode == 253) { |
| 783 print(">>> TEST CRASH"); | 775 print(">>> TEST CRASH"); |
| 784 } else { | 776 } else { |
| 785 print(">>> TEST FAIL"); | 777 print(">>> TEST FAIL"); |
| 786 } | 778 } |
| 787 stderr.writeln(">>> EOF STDERR"); | 779 stderr.writeln(">>> EOF STDERR"); |
| 788 subscription.resume(); | 780 subscription.resume(); |
| 789 }); | 781 }); |
| 790 }); | 782 }); |
| 791 } | 783 } |
| OLD | NEW |