Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: pkg/front_end/lib/src/fasta/target_implementation.dart

Issue 2977703002: Refactorings for TranslateUri and its tests. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698