| 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/targets.dart' as backend show Target; | 7 import 'package:kernel/target/targets.dart' as backend show Target; |
| 8 | 8 |
| 9 import 'builder/builder.dart' show Builder, ClassBuilder, LibraryBuilder; | 9 import 'builder/builder.dart' show Builder, ClassBuilder, LibraryBuilder; |
| 10 | 10 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 for (String uri in backendTarget.extraRequiredLibraries) { | 94 for (String uri in backendTarget.extraRequiredLibraries) { |
| 95 loader.read(Uri.parse(uri), -1); | 95 loader.read(Uri.parse(uri), -1); |
| 96 } | 96 } |
| 97 } | 97 } |
| 98 | 98 |
| 99 void addSourceInformation( | 99 void addSourceInformation( |
| 100 Uri uri, List<int> lineStarts, List<int> sourceCode); | 100 Uri uri, List<int> lineStarts, List<int> sourceCode); |
| 101 | 101 |
| 102 void readPatchFiles(LibraryBuilder library) { | 102 void readPatchFiles(LibraryBuilder library) { |
| 103 assert(library.uri.scheme == "dart"); | 103 assert(library.uri.scheme == "dart"); |
| 104 List<Uri> patches = uriTranslator.patches[library.uri.path]; | 104 List<Uri> patches = uriTranslator.dartPatches[library.uri.path]; |
| 105 if (patches != null) { | 105 if (patches != null) { |
| 106 for (Uri patch in patches) { | 106 for (Uri patch in patches) { |
| 107 library.loader.read(patch, -1, fileUri: patch, isPatch: true); | 107 library.loader.read(patch, -1, fileUri: patch, isPatch: true); |
| 108 } | 108 } |
| 109 } | 109 } |
| 110 } | 110 } |
| 111 } | 111 } |
| OLD | NEW |