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

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

Issue 2393813003: Add BazelWorkspace and move BazelFileUriResolver to it. (Closed)
Patch Set: Created 4 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
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 f005eefd8c90a9d2b367c3b0e63ebb0769da0d32..ac8c0db6652a0ee187ba92c9640b1f2294cbb1f3 100644
--- a/pkg/analyzer/lib/file_system/file_system.dart
+++ b/pkg/analyzer/lib/file_system/file_system.dart
@@ -260,8 +260,8 @@ class ResourceUriResolver extends UriResolver {
if (!isFileUri(uri)) {
return null;
}
- Resource resource =
- _provider.getResource(_provider.pathContext.fromUri(uri));
+ String path = _provider.pathContext.fromUri(uri);
+ Resource resource = _provider.getResource(path);
if (resource is File) {
return resource.createSource(actualUri ?? uri);
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/bazel.dart » ('j') | pkg/analyzer/test/generated/bazel_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698