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

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

Issue 2894883002: Remove more libraries directives from server (Closed)
Patch Set: Created 3 years, 7 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/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;
}

Powered by Google App Engine
This is Rietveld 408576698