| 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 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 import 'package:package_config/packages.dart'; | 10 import 'package:package_config/packages.dart'; |
| 11 import 'package:package_config/packages_file.dart' as pkgs; | 11 import 'package:package_config/packages_file.dart' as pkgs; |
| 12 import 'package:package_config/src/packages_impl.dart' show | 12 import 'package:package_config/src/packages_impl.dart' show |
| 13 MapPackages, | 13 MapPackages, |
| 14 NonFilePackagesDirectoryPackages; | 14 NonFilePackagesDirectoryPackages; |
| 15 import 'package:package_config/src/util.dart' show | 15 import 'package:package_config/src/util.dart' show |
| 16 checkValidPackageUri; | 16 checkValidPackageUri; |
| 17 import 'package:sdk_library_metadata/libraries.dart' hide LIBRARIES; | 17 import 'package:sdk_library_metadata/libraries.dart' hide LIBRARIES; |
| 18 import 'package:sdk_library_metadata/libraries.dart' as library_info show | 18 import 'package:sdk_library_metadata/libraries.dart' as library_info show |
| 19 LIBRARIES; | 19 LIBRARIES; |
| 20 | 20 |
| 21 import '../compiler_new.dart' as api; | 21 import '../compiler_new.dart' as api; |
| 22 import 'common/tasks.dart' show | 22 import 'common/tasks.dart' show |
| 23 GenericTask; | 23 GenericTask; |
| 24 import 'compiler.dart' as leg; | 24 import 'compiler.dart' as leg; |
| 25 import 'diagnostics/messages.dart'; |
| 25 import 'diagnostics/source_span.dart' show | 26 import 'diagnostics/source_span.dart' show |
| 26 SourceSpan; | 27 SourceSpan; |
| 27 import 'diagnostics/spannable.dart' show | 28 import 'diagnostics/spannable.dart' show |
| 28 NO_LOCATION_SPANNABLE, | 29 NO_LOCATION_SPANNABLE, |
| 29 Spannable; | 30 Spannable; |
| 30 import 'elements/elements.dart' as elements; | 31 import 'elements/elements.dart' as elements; |
| 31 import 'io/source_file.dart'; | 32 import 'io/source_file.dart'; |
| 32 import 'messages.dart'; | |
| 33 import 'script.dart'; | 33 import 'script.dart'; |
| 34 import 'tree/tree.dart' as tree; | 34 import 'tree/tree.dart' as tree; |
| 35 | 35 |
| 36 const bool forceIncrementalSupport = | 36 const bool forceIncrementalSupport = |
| 37 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); | 37 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); |
| 38 | 38 |
| 39 class Compiler extends leg.Compiler { | 39 class Compiler extends leg.Compiler { |
| 40 api.CompilerInput provider; | 40 api.CompilerInput provider; |
| 41 api.CompilerDiagnostics handler; | 41 api.CompilerDiagnostics handler; |
| 42 final Uri libraryRoot; | 42 final Uri libraryRoot; |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 print('$message: ${tryToString(exception)}'); | 491 print('$message: ${tryToString(exception)}'); |
| 492 print(tryToString(stackTrace)); | 492 print(tryToString(stackTrace)); |
| 493 } | 493 } |
| 494 | 494 |
| 495 fromEnvironment(String name) => environment[name]; | 495 fromEnvironment(String name) => environment[name]; |
| 496 | 496 |
| 497 LibraryInfo lookupLibraryInfo(String libraryName) { | 497 LibraryInfo lookupLibraryInfo(String libraryName) { |
| 498 return library_info.LIBRARIES[libraryName]; | 498 return library_info.LIBRARIES[libraryName]; |
| 499 } | 499 } |
| 500 } | 500 } |
| OLD | NEW |