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

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

Issue 461763002: Use _provider.pathContext to convert URIs to files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | « no previous file | no next file » | 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 58da59b1257413046b737d80986ea2bd27bf4113..5ef0196c56ca176b677724b7ebd42dae76a321fc 100644
--- a/pkg/analyzer/lib/file_system/file_system.dart
+++ b/pkg/analyzer/lib/file_system/file_system.dart
@@ -130,7 +130,8 @@ class ResourceUriResolver extends UriResolver {
if (!_isFileUri(uri)) {
return null;
}
- Resource resource = _provider.getResource(fromUri(uri));
+ Resource resource = _provider.getResource(_provider.pathContext.fromUri(uri)
+ );
if (resource is File) {
return resource.createSource(uri);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698