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

Unified Diff: pkg/analysis_server/lib/src/server/driver.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/src/server/driver.dart
diff --git a/pkg/analysis_server/lib/src/server/driver.dart b/pkg/analysis_server/lib/src/server/driver.dart
index 7604fc02431b66f2e6db307f472d7b5192028233..e4bd0c17709a43b99d11a34eb90737fe65e3e94c 100644
--- a/pkg/analysis_server/lib/src/server/driver.dart
+++ b/pkg/analysis_server/lib/src/server/driver.dart
@@ -9,6 +9,7 @@ import 'dart:io';
import 'dart:math';
import 'package:analysis_server/src/analysis_server.dart';
+import 'package:analysis_server/src/context_manager.dart';
import 'package:analysis_server/src/plugin/server_plugin.dart';
import 'package:analysis_server/src/server/http_server.dart';
import 'package:analysis_server/src/server/stdio_server.dart';
@@ -284,9 +285,16 @@ class Driver implements ServerStarter {
InstrumentationServer instrumentationServer;
/**
+ * The context manager used to create analysis contexts within each of the
+ * analysis roots.
+ */
+ ContextManager contextManager;
+
+ /**
* The package resolver provider used to override the way package URI's are
* resolved in some contexts.
*/
+ @deprecated
ResolverProvider packageResolverProvider;
/**
@@ -396,7 +404,7 @@ class Driver implements ServerStarter {
// Create the sockets and start listening for requests.
//
socketServer = new SocketServer(analysisServerOptions, defaultSdk, service,
- serverPlugin, packageResolverProvider);
+ serverPlugin, contextManager, packageResolverProvider);
httpServer = new HttpAnalysisServer(socketServer);
stdioServer = new StdioAnalysisServer(socketServer);
socketServer.userDefinedPlugins = _userDefinedPlugins;

Powered by Google App Engine
This is Rietveld 408576698