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

Side by Side Diff: pkg/analysis_server/lib/src/socket_server.dart

Issue 2945313002: Remove the unused class SingleContextManager (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:analysis_server/protocol/protocol.dart'; 5 import 'package:analysis_server/protocol/protocol.dart';
6 import 'package:analysis_server/protocol/protocol_generated.dart'; 6 import 'package:analysis_server/protocol/protocol_generated.dart';
7 import 'package:analysis_server/src/analysis_server.dart'; 7 import 'package:analysis_server/src/analysis_server.dart';
8 import 'package:analysis_server/src/channel/channel.dart'; 8 import 'package:analysis_server/src/channel/channel.dart';
9 import 'package:analysis_server/src/plugin/server_plugin.dart'; 9 import 'package:analysis_server/src/plugin/server_plugin.dart';
10 import 'package:analysis_server/src/server/diagnostic_server.dart'; 10 import 'package:analysis_server/src/server/diagnostic_server.dart';
(...skipping 18 matching lines...) Expand all
29 * The function used to create a new SDK using the default SDK. 29 * The function used to create a new SDK using the default SDK.
30 */ 30 */
31 final DartSdkManager sdkManager; 31 final DartSdkManager sdkManager;
32 32
33 final DartSdk defaultSdk; 33 final DartSdk defaultSdk;
34 final InstrumentationService instrumentationService; 34 final InstrumentationService instrumentationService;
35 final DiagnosticServer diagnosticServer; 35 final DiagnosticServer diagnosticServer;
36 final ServerPlugin serverPlugin; 36 final ServerPlugin serverPlugin;
37 final ResolverProvider fileResolverProvider; 37 final ResolverProvider fileResolverProvider;
38 final ResolverProvider packageResolverProvider; 38 final ResolverProvider packageResolverProvider;
39 final bool useSingleContextManager;
40 39
41 /** 40 /**
42 * The analysis server that was created when a client established a 41 * The analysis server that was created when a client established a
43 * connection, or `null` if no such connection has yet been established. 42 * connection, or `null` if no such connection has yet been established.
44 */ 43 */
45 AnalysisServer analysisServer; 44 AnalysisServer analysisServer;
46 45
47 /** 46 /**
48 * The plugins that are defined outside the analysis_server package. 47 * The plugins that are defined outside the analysis_server package.
49 */ 48 */
50 List<Plugin> userDefinedPlugins; 49 List<Plugin> userDefinedPlugins;
51 50
52 SocketServer( 51 SocketServer(
53 this.analysisServerOptions, 52 this.analysisServerOptions,
54 this.sdkManager, 53 this.sdkManager,
55 this.defaultSdk, 54 this.defaultSdk,
56 this.instrumentationService, 55 this.instrumentationService,
57 this.diagnosticServer, 56 this.diagnosticServer,
58 this.serverPlugin, 57 this.serverPlugin,
59 this.fileResolverProvider, 58 this.fileResolverProvider,
60 this.packageResolverProvider, 59 this.packageResolverProvider);
61 this.useSingleContextManager);
62 60
63 /** 61 /**
64 * Create an analysis server which will communicate with the client using the 62 * Create an analysis server which will communicate with the client using the
65 * given serverChannel. 63 * given serverChannel.
66 */ 64 */
67 void createAnalysisServer(ServerCommunicationChannel serverChannel) { 65 void createAnalysisServer(ServerCommunicationChannel serverChannel) {
68 if (analysisServer != null) { 66 if (analysisServer != null) {
69 RequestError error = new RequestError( 67 RequestError error = new RequestError(
70 RequestErrorCode.SERVER_ALREADY_STARTED, "Server already started"); 68 RequestErrorCode.SERVER_ALREADY_STARTED, "Server already started");
71 serverChannel.sendResponse(new Response('', error: error)); 69 serverChannel.sendResponse(new Response('', error: error));
(...skipping 19 matching lines...) Expand all
91 resourceProvider, 89 resourceProvider,
92 new PubPackageMapProvider(resourceProvider, defaultSdk), 90 new PubPackageMapProvider(resourceProvider, defaultSdk),
93 createMemoryIndex(), 91 createMemoryIndex(),
94 serverPlugin, 92 serverPlugin,
95 analysisServerOptions, 93 analysisServerOptions,
96 sdkManager, 94 sdkManager,
97 instrumentationService, 95 instrumentationService,
98 diagnosticServer: diagnosticServer, 96 diagnosticServer: diagnosticServer,
99 fileResolverProvider: fileResolverProvider, 97 fileResolverProvider: fileResolverProvider,
100 packageResolverProvider: packageResolverProvider, 98 packageResolverProvider: packageResolverProvider,
101 useSingleContextManager: useSingleContextManager,
102 rethrowExceptions: false); 99 rethrowExceptions: false);
103 analysisServer.userDefinedPlugins = userDefinedPlugins; 100 analysisServer.userDefinedPlugins = userDefinedPlugins;
104 } 101 }
105 } 102 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/single_context_manager.dart ('k') | pkg/analysis_server/test/single_context_manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698