| 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:io' | 9 import 'dart:io' |
| 10 show exit, File, FileMode, Platform, RandomAccessFile, FileSystemException; | 10 show exit, File, FileMode, Platform, RandomAccessFile, FileSystemException; |
| 11 import 'dart:math' as math; | 11 import 'dart:math' as math; |
| 12 | 12 |
| 13 import '../compiler.dart' as api; | 13 import '../compiler.dart' as api; |
| 14 import 'source_file.dart'; | 14 import 'source_file.dart'; |
| 15 import 'source_file_provider.dart'; | 15 import 'source_file_provider.dart'; |
| 16 import 'filenames.dart'; | 16 import 'filenames.dart'; |
| 17 import 'util/uri_extras.dart'; | 17 import 'util/uri_extras.dart'; |
| 18 import 'util/util.dart'; | 18 import 'util/util.dart' show stackTraceFilePrefix; |
| 19 import '../../libraries.dart'; | 19 import '../../libraries.dart'; |
| 20 | 20 |
| 21 const String LIBRARY_ROOT = '../../../../..'; | 21 const String LIBRARY_ROOT = '../../../../..'; |
| 22 const String OUTPUT_LANGUAGE_DART = 'Dart'; | 22 const String OUTPUT_LANGUAGE_DART = 'Dart'; |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * A string to identify the revision or build. | 25 * A string to identify the revision or build. |
| 26 * | 26 * |
| 27 * This ID is displayed if the compiler crashes and in verbose mode, and is | 27 * This ID is displayed if the compiler crashes and in verbose mode, and is |
| 28 * an aid in reproducing bug reports. | 28 * an aid in reproducing bug reports. |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 } | 656 } |
| 657 } | 657 } |
| 658 | 658 |
| 659 try { | 659 try { |
| 660 return compilerMain(arguments).catchError(onError); | 660 return compilerMain(arguments).catchError(onError); |
| 661 } catch (exception, trace) { | 661 } catch (exception, trace) { |
| 662 onError(exception, trace); | 662 onError(exception, trace); |
| 663 return new Future.value(); | 663 return new Future.value(); |
| 664 } | 664 } |
| 665 } | 665 } |
| OLD | NEW |