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

Unified Diff: pkg/analysis_server/lib/src/context_manager.dart

Issue 1444943003: Use AbsolutePathContext in Folder.contains(). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/file_system/file_system.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/context_manager.dart
diff --git a/pkg/analysis_server/lib/src/context_manager.dart b/pkg/analysis_server/lib/src/context_manager.dart
index 0b1a2d7c4a84ad4574615ed9d972f4d032c30c39..430b75c1a23d351677eaa340eda10f315f709244 100644
--- a/pkg/analysis_server/lib/src/context_manager.dart
+++ b/pkg/analysis_server/lib/src/context_manager.dart
@@ -343,11 +343,6 @@ class ContextManagerImpl implements ContextManager {
final ResourceProvider resourceProvider;
/**
- * The context used to work with file system paths.
- */
- pathos.Context pathContext;
-
- /**
* The context used to work with absolute file system paths.
*
* TODO(scheglov) remove [pathContext].
@@ -355,6 +350,11 @@ class ContextManagerImpl implements ContextManager {
AbsolutePathContext absolutePathContext;
/**
+ * The context used to work with file system paths.
+ */
+ pathos.Context pathContext;
+
+ /**
* The list of excluded paths (folders and files) most recently passed to
* [setRoots].
*/
@@ -417,8 +417,8 @@ class ContextManagerImpl implements ContextManager {
ContextManagerImpl(this.resourceProvider, this.packageResolverProvider,
this._packageMapProvider, this._instrumentationService) {
+ absolutePathContext = resourceProvider.absolutePathContext;
pathContext = resourceProvider.pathContext;
- absolutePathContext = new AbsolutePathContext(pathContext.separator);
}
@override
« no previous file with comments | « no previous file | pkg/analyzer/lib/file_system/file_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698