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 '../compiler.dart' as api; | 10 import '../compiler.dart' as api; |
11 import 'dart2jslib.dart' as leg; | 11 import 'dart2jslib.dart' as leg; |
12 import 'tree/tree.dart' as tree; | 12 import 'tree/tree.dart' as tree; |
13 import 'elements/elements.dart' as elements; | 13 import 'elements/elements.dart' as elements; |
14 import 'package:_internal/libraries.dart' hide LIBRARIES; | 14 import 'package:sdk_library_metadata/libraries.dart' hide LIBRARIES; |
15 import 'package:_internal/libraries.dart' as library_info show LIBRARIES; | 15 import 'package:sdk_library_metadata/libraries.dart' as library_info show LIBRAR
IES; |
16 import 'io/source_file.dart'; | 16 import 'io/source_file.dart'; |
17 import 'package:package_config/packages.dart'; | 17 import 'package:package_config/packages.dart'; |
18 import 'package:package_config/packages_file.dart' as pkgs; | 18 import 'package:package_config/packages_file.dart' as pkgs; |
19 import 'package:package_config/src/packages_impl.dart' | 19 import 'package:package_config/src/packages_impl.dart' |
20 show NonFilePackagesDirectoryPackages, MapPackages; | 20 show NonFilePackagesDirectoryPackages, MapPackages; |
21 import 'package:package_config/src/util.dart' show checkValidPackageUri; | 21 import 'package:package_config/src/util.dart' show checkValidPackageUri; |
22 | 22 |
23 const bool forceIncrementalSupport = | 23 const bool forceIncrementalSupport = |
24 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); | 24 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); |
25 | 25 |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 print('$message: ${tryToString(exception)}'); | 469 print('$message: ${tryToString(exception)}'); |
470 print(tryToString(stackTrace)); | 470 print(tryToString(stackTrace)); |
471 } | 471 } |
472 | 472 |
473 fromEnvironment(String name) => environment[name]; | 473 fromEnvironment(String name) => environment[name]; |
474 | 474 |
475 LibraryInfo lookupLibraryInfo(String libraryName) { | 475 LibraryInfo lookupLibraryInfo(String libraryName) { |
476 return library_info.LIBRARIES[libraryName]; | 476 return library_info.LIBRARIES[libraryName]; |
477 } | 477 } |
478 } | 478 } |
OLD | NEW |