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

Unified Diff: pkg/analyzer/lib/src/context/builder.dart

Issue 2844663003: Fix some issues with options handling (Closed)
Patch Set: Created 3 years, 8 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_cli/lib/src/driver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/context/builder.dart
diff --git a/pkg/analyzer/lib/src/context/builder.dart b/pkg/analyzer/lib/src/context/builder.dart
index 899e738cf1e0ba18843182b2fae43b7591db2628..5c70a2bf5f536527f82f71611add2a24a3c90c6b 100644
--- a/pkg/analyzer/lib/src/context/builder.dart
+++ b/pkg/analyzer/lib/src/context/builder.dart
@@ -817,7 +817,10 @@ class _BasicWorkspace extends Workspace {
throw new ArgumentError('not absolute: $path');
}
path = context.normalize(path);
-
+ Resource resource = provider.getResource(path);
+ if (resource is File) {
+ path = resource.parent.path;
+ }
return new _BasicWorkspace._(provider, path, builder);
}
}
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698