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

Unified Diff: pkg/analysis_server/lib/starter.dart

Issue 1223413003: Hook for overriding the ContextManager and some code clean-up (with more to follow) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/starter.dart
diff --git a/pkg/analysis_server/lib/starter.dart b/pkg/analysis_server/lib/starter.dart
index e96c8b3d4d3933258e9dba685d3c3672234f2844..87821c144caa61db3699ad689675f050887651d5 100644
--- a/pkg/analysis_server/lib/starter.dart
+++ b/pkg/analysis_server/lib/starter.dart
@@ -4,6 +4,7 @@
library driver;
+import 'package:analysis_server/src/context_manager.dart';
import 'package:analysis_server/src/server/driver.dart';
import 'package:analysis_server/uri/resolver_provider.dart';
import 'package:analyzer/instrumentation/instrumentation.dart';
@@ -19,6 +20,12 @@ abstract class ServerStarter {
factory ServerStarter() = Driver;
/**
+ * Set the context manager used to create analysis contexts within each of the
+ * analysis roots.
+ */
+ void set contextManager(ContextManager manager);
+
+ /**
* Set the instrumentation [server] that is to be used by the analysis server.
*/
void set instrumentationServer(InstrumentationServer server);
@@ -28,6 +35,7 @@ abstract class ServerStarter {
* are resolved in some contexts. The provider should return `null` if the
* default package resolution scheme should be used instead.
*/
+ @deprecated
void set packageResolverProvider(ResolverProvider provider);
/**

Powered by Google App Engine
This is Rietveld 408576698