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

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

Issue 2754473004: Replace making getInnermostContext public with making a getFolder method (Closed)
Patch Set: Created 3 years, 9 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 | « pkg/analysis_server/lib/src/context_manager.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0efb049d2823ec9477440b0174e077c35ed6da26..ed1d816350da9e76e2e665e327afafa94eb3e504 100644
--- a/pkg/analysis_server/lib/src/single_context_manager.dart
+++ b/pkg/analysis_server/lib/src/single_context_manager.dart
@@ -147,6 +147,14 @@ class SingleContextManager implements ContextManager {
}
@override
+ Folder getContextFolderFor(String path) {
+ if (isInAnalysisRoot(path)) {
+ return contextFolder;
+ }
+ return null;
+ }
+
+ @override
AnalysisDriver getDriverFor(String path) {
throw new UnimplementedError(
'Unexpected invocation of getDriverFor in SingleContextManager');
« no previous file with comments | « pkg/analysis_server/lib/src/context_manager.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698