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

Unified Diff: pkg/analyzer/test/generated/analysis_context_factory.dart

Issue 2003633002: Use FastUri instead of Uri in analyzer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Added test file. Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/generated/analysis_context_factory.dart
diff --git a/pkg/analyzer/test/generated/analysis_context_factory.dart b/pkg/analyzer/test/generated/analysis_context_factory.dart
index 04560c2f4115606e3d3bfd2fc3e0148ffb58c0e2..cca5d3bdeffc8bc0211618ca8570b281f5a98fa3 100644
--- a/pkg/analyzer/test/generated/analysis_context_factory.dart
+++ b/pkg/analyzer/test/generated/analysis_context_factory.dart
@@ -512,17 +512,19 @@ class AnalysisContextHelper {
}
class TestPackageUriResolver extends UriResolver {
- Map<Uri, Source> sourceMap = new HashMap<Uri, Source>();
+ Map<String, Source> sourceMap = new HashMap<String, Source>();
TestPackageUriResolver(Map<String, String> map) {
map.forEach((String uri, String contents) {
- sourceMap[Uri.parse(uri)] =
- new StringSource(contents, '/test_pkg_source.dart');
+ sourceMap[uri] = new StringSource(contents, '/test_pkg_source.dart');
});
}
@override
- Source resolveAbsolute(Uri uri, [Uri actualUri]) => sourceMap[uri];
+ Source resolveAbsolute(Uri uri, [Uri actualUri]) {
+ String uriString = uri.toString();
+ return sourceMap[uriString];
+ }
@override
Uri restoreAbsolute(Source source) => throw new UnimplementedError();

Powered by Google App Engine
This is Rietveld 408576698