| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 fasta.target_implementation; | 5 library fasta.target_implementation; |
| 6 | 6 |
| 7 import 'package:kernel/target/vm.dart' show | 7 import 'package:kernel/target/vm.dart' show |
| 8 VmTarget; | 8 VmTarget; |
| 9 | 9 |
| 10 import 'builder/builder.dart' show | 10 import 'builder/builder.dart' show |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 if (cachedNativeAnnotation != null) return cachedNativeAnnotation; | 66 if (cachedNativeAnnotation != null) return cachedNativeAnnotation; |
| 67 LibraryBuilder internal = loader.read(Uri.parse("dart:_internal")); | 67 LibraryBuilder internal = loader.read(Uri.parse("dart:_internal")); |
| 68 return cachedNativeAnnotation = internal.getConstructor("ExternalName"); | 68 return cachedNativeAnnotation = internal.getConstructor("ExternalName"); |
| 69 } | 69 } |
| 70 | 70 |
| 71 void loadExtraRequiredLibraries(Loader loader) { | 71 void loadExtraRequiredLibraries(Loader loader) { |
| 72 for (String uri in new VmTarget(null).extraRequiredLibraries) { | 72 for (String uri in new VmTarget(null).extraRequiredLibraries) { |
| 73 loader.read(Uri.parse(uri)); | 73 loader.read(Uri.parse(uri)); |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 |
| 77 void addLineStarts(Uri uri, List<int> lineStarts); |
| 76 } | 78 } |
| OLD | NEW |