OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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; | 5 #library('dart2js'); |
6 | 6 |
7 import 'dart:io'; | 7 #import('dart:io'); |
8 import 'dart:uri'; | 8 #import('dart:uri'); |
9 import 'dart:utf'; | 9 #import('dart:utf'); |
10 | 10 |
11 import '../compiler.dart' as api; | 11 #import('../compiler.dart', prefix: 'api'); |
12 import 'colors.dart' as colors; | 12 #import('colors.dart', prefix: 'colors'); |
13 import 'source_file.dart'; | 13 #import('source_file.dart'); |
14 import 'filenames.dart'; | 14 #import('filenames.dart'); |
15 import 'util/uri_extras.dart'; | 15 #import('util/uri_extras.dart'); |
16 | 16 |
17 const String LIBRARY_ROOT = '../../../../..'; | 17 const String LIBRARY_ROOT = '../../../../..'; |
18 const String OUTPUT_LANGUAGE_DART = 'Dart'; | 18 const String OUTPUT_LANGUAGE_DART = 'Dart'; |
19 | 19 |
20 typedef void HandleOption(String option); | 20 typedef void HandleOption(String option); |
21 | 21 |
22 class OptionHandler { | 22 class OptionHandler { |
23 String pattern; | 23 String pattern; |
24 HandleOption handle; | 24 HandleOption handle; |
25 | 25 |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 } catch (ignored) { | 426 } catch (ignored) { |
427 print('Internal error: error while printing exception'); | 427 print('Internal error: error while printing exception'); |
428 } | 428 } |
429 try { | 429 try { |
430 print(trace); | 430 print(trace); |
431 } finally { | 431 } finally { |
432 exit(253); // 253 is recognized as a crash by our test scripts. | 432 exit(253); // 253 is recognized as a crash by our test scripts. |
433 } | 433 } |
434 } | 434 } |
435 } | 435 } |
OLD | NEW |