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

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

Issue 1296653003: Fix most implementations of UriResolver.restoreAbsolute. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | « pkg/analysis_server/test/context_manager_test.dart ('k') | pkg/analyzer/lib/source/sdk_ext.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/file_system/file_system.dart
diff --git a/pkg/analyzer/lib/file_system/file_system.dart b/pkg/analyzer/lib/file_system/file_system.dart
index 788600beac35d61483513eb558572c0a0cf36752..7d3ed95ad2988a45c3f4869e092b71b112056918 100644
--- a/pkg/analyzer/lib/file_system/file_system.dart
+++ b/pkg/analyzer/lib/file_system/file_system.dart
@@ -140,14 +140,14 @@ abstract class ResourceProvider {
/**
* Return a [File] that corresponds to the given [path].
- *
+ *
* A file may or may not exist at this location.
*/
File getFile(String path);
/**
* Return a [Folder] that corresponds to the given [path].
- *
+ *
* A folder may or may not exist at this location.
*/
Folder getFolder(String path);
@@ -194,7 +194,8 @@ class ResourceUriResolver extends UriResolver {
}
@override
- Uri restoreAbsolute(Source source) => source.uri;
+ Uri restoreAbsolute(Source source) =>
+ _provider.pathContext.toUri(source.fullName);
/**
* Return `true` if the given [uri] is a `file` URI.
« no previous file with comments | « pkg/analysis_server/test/context_manager_test.dart ('k') | pkg/analyzer/lib/source/sdk_ext.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698