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' |
11 show exit, File, FileMode, Platform, RandomAccessFile, FileSystemException, | 11 show exit, File, FileMode, Platform, RandomAccessFile, FileSystemException, |
12 stdin, stderr; | 12 stdin, stderr; |
13 | 13 |
14 import '../compiler.dart' as api; | 14 import '../compiler.dart' as api; |
15 import 'io/source_file.dart'; | 15 import 'io/source_file.dart'; |
16 import 'source_file_provider.dart'; | 16 import 'source_file_provider.dart'; |
17 import 'filenames.dart'; | 17 import 'filenames.dart'; |
18 import 'util/uri_extras.dart'; | 18 import 'util/uri_extras.dart'; |
19 import 'util/util.dart' show stackTraceFilePrefix; | 19 import 'util/util.dart' show stackTraceFilePrefix; |
20 import 'util/command_line.dart'; | 20 import 'util/command_line.dart'; |
21 import 'package:_internal/libraries.dart'; | 21 import 'package:sdk_library_metadata/libraries.dart'; |
22 import 'package:package_config/discovery.dart' show findPackages; | 22 import 'package:package_config/discovery.dart' show findPackages; |
23 | 23 |
24 const String LIBRARY_ROOT = '../../../../../sdk'; | 24 const String LIBRARY_ROOT = '../../../../../sdk'; |
25 const String OUTPUT_LANGUAGE_DART = 'Dart'; | 25 const String OUTPUT_LANGUAGE_DART = 'Dart'; |
26 | 26 |
27 /** | 27 /** |
28 * A string to identify the revision or build. | 28 * A string to identify the revision or build. |
29 * | 29 * |
30 * This ID is displayed if the compiler crashes and in verbose mode, and is | 30 * This ID is displayed if the compiler crashes and in verbose mode, and is |
31 * an aid in reproducing bug reports. | 31 * an aid in reproducing bug reports. |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 } else if (exitCode == 253) { | 755 } else if (exitCode == 253) { |
756 print(">>> TEST CRASH"); | 756 print(">>> TEST CRASH"); |
757 } else { | 757 } else { |
758 print(">>> TEST FAIL"); | 758 print(">>> TEST FAIL"); |
759 } | 759 } |
760 stderr.writeln(">>> EOF STDERR"); | 760 stderr.writeln(">>> EOF STDERR"); |
761 subscription.resume(); | 761 subscription.resume(); |
762 }); | 762 }); |
763 }); | 763 }); |
764 } | 764 } |
OLD | NEW |