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

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

Issue 1444983002: Optimize 'isWithin'. (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/src/util/absolute_path.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 430b75c1a23d351677eaa340eda10f315f709244..f412eb45a647141c0acb3f2b7c773c52f8993f66 100644
--- a/pkg/analysis_server/lib/src/context_manager.dart
+++ b/pkg/analysis_server/lib/src/context_manager.dart
@@ -1179,7 +1179,7 @@ class ContextManagerImpl implements ContextManager {
*/
bool _isContainedInDotFolder(String root, String path) {
String pathDir = absolutePathContext.dirname(path);
- String suffixPath = absolutePathContext.suffix(pathDir, root);
+ String suffixPath = absolutePathContext.suffix(root, pathDir);
if (suffixPath == null) {
return false;
}
@@ -1215,7 +1215,7 @@ class ContextManagerImpl implements ContextManager {
* context root [root], contains a 'packages' folder.
*/
bool _isInPackagesDir(String root, String path) {
- String suffixPath = absolutePathContext.suffix(path, root);
+ String suffixPath = absolutePathContext.suffix(root, path);
if (suffixPath == null) {
return false;
}
@@ -1228,7 +1228,7 @@ class ContextManagerImpl implements ContextManager {
* context root [root].
*/
bool _isInTopLevelDocDir(String root, String path) {
- String suffixPath = absolutePathContext.suffix(path, root);
+ String suffixPath = absolutePathContext.suffix(root, path);
if (suffixPath == null) {
return false;
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/util/absolute_path.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698