Index: pkg/analysis_server/lib/src/single_context_manager.dart |
diff --git a/pkg/analysis_server/lib/src/single_context_manager.dart b/pkg/analysis_server/lib/src/single_context_manager.dart |
index ed1d816350da9e76e2e665e327afafa94eb3e504..b0bf0334a741711492b30e5ed8bcaea8039e3a6a 100644 |
--- a/pkg/analysis_server/lib/src/single_context_manager.dart |
+++ b/pkg/analysis_server/lib/src/single_context_manager.dart |
@@ -2,8 +2,6 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-library analysis_server.src.single_context_manager; |
- |
import 'dart:async'; |
import 'dart:core'; |
import 'dart:math' as math; |
@@ -137,19 +135,19 @@ class SingleContextManager implements ContextManager { |
} |
@override |
- AnalysisContext getContextFor(String path) { |
- if (context == null) { |
- return null; |
- } else if (_isContainedIn(includedPaths, path)) { |
- return context; |
+ Folder getContextFolderFor(String path) { |
+ if (isInAnalysisRoot(path)) { |
+ return contextFolder; |
} |
return null; |
} |
@override |
- Folder getContextFolderFor(String path) { |
- if (isInAnalysisRoot(path)) { |
- return contextFolder; |
+ AnalysisContext getContextFor(String path) { |
+ if (context == null) { |
+ return null; |
+ } else if (_isContainedIn(includedPaths, path)) { |
+ return context; |
} |
return null; |
} |