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

Unified Diff: pkg/analyzer/lib/file_system/memory_file_system.dart

Issue 1399873002: Issue 24538. Route SDK results into SDK context DartWorkManager. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/file_system/memory_file_system.dart
diff --git a/pkg/analyzer/lib/file_system/memory_file_system.dart b/pkg/analyzer/lib/file_system/memory_file_system.dart
index 1684fe969911a74677be2198c9bd97543419d585..058f9eb9ef94b35bb562e826e1e1f0d514206ad3 100644
--- a/pkg/analyzer/lib/file_system/memory_file_system.dart
+++ b/pkg/analyzer/lib/file_system/memory_file_system.dart
@@ -363,7 +363,13 @@ class _MemoryFileSource extends Source {
@override
Uri resolveRelativeUri(Uri relativeUri) {
- return uri.resolveUri(relativeUri);
+ Uri baseUri = uri;
+ String scheme = uri.scheme;
+ if (scheme == DartUriResolver.DART_SCHEME) {
+ String libraryName = uri.path;
+ baseUri = Uri.parse('$scheme:$libraryName/$libraryName.dart');
+ }
+ return baseUri.resolveUri(relativeUri);
}
@override
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698