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 leg_apiimpl; | 5 library leg_apiimpl; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import '../compiler.dart' as api; | 9 import '../compiler.dart' as api; |
10 import 'dart2jslib.dart' as leg; | 10 import 'dart2jslib.dart' as leg; |
11 import 'tree/tree.dart' as tree; | 11 import 'tree/tree.dart' as tree; |
12 import 'elements/elements.dart' as elements; | 12 import 'elements/elements.dart' as elements; |
13 import '../../libraries.dart'; | 13 import 'package:_internal/libraries.dart'; |
14 import 'source_file.dart'; | 14 import 'source_file.dart'; |
15 | 15 |
16 const bool forceIncrementalSupport = | 16 const bool forceIncrementalSupport = |
17 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); | 17 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); |
18 | 18 |
19 class Compiler extends leg.Compiler { | 19 class Compiler extends leg.Compiler { |
20 api.CompilerInputProvider provider; | 20 api.CompilerInputProvider provider; |
21 api.DiagnosticHandler handler; | 21 api.DiagnosticHandler handler; |
22 final Uri libraryRoot; | 22 final Uri libraryRoot; |
23 final Uri packageRoot; | 23 final Uri packageRoot; |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 } | 354 } |
355 | 355 |
356 void diagnoseCrashInUserCode(String message, exception, stackTrace) { | 356 void diagnoseCrashInUserCode(String message, exception, stackTrace) { |
357 hasCrashed = true; | 357 hasCrashed = true; |
358 print('$message: ${tryToString(exception)}'); | 358 print('$message: ${tryToString(exception)}'); |
359 print(tryToString(stackTrace)); | 359 print(tryToString(stackTrace)); |
360 } | 360 } |
361 | 361 |
362 fromEnvironment(String name) => environment[name]; | 362 fromEnvironment(String name) => environment[name]; |
363 } | 363 } |
OLD | NEW |