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

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

Issue 1256793006: Stop optimizing uses of "pub list". (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 library socket.server; 5 library socket.server;
6 6
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/context_manager.dart'; 9 import 'package:analysis_server/src/context_manager.dart';
10 import 'package:analysis_server/src/plugin/server_plugin.dart'; 10 import 'package:analysis_server/src/plugin/server_plugin.dart';
11 import 'package:analysis_server/src/protocol.dart'; 11 import 'package:analysis_server/src/protocol.dart';
12 import 'package:analysis_server/src/services/index/index.dart'; 12 import 'package:analysis_server/src/services/index/index.dart';
13 import 'package:analysis_server/src/services/index/local_file_index.dart'; 13 import 'package:analysis_server/src/services/index/local_file_index.dart';
14 import 'package:analysis_server/src/source/optimizing_pub_package_map_provider.d art';
15 import 'package:analysis_server/uri/resolver_provider.dart'; 14 import 'package:analysis_server/uri/resolver_provider.dart';
16 import 'package:analyzer/file_system/physical_file_system.dart'; 15 import 'package:analyzer/file_system/physical_file_system.dart';
17 import 'package:analyzer/instrumentation/instrumentation.dart'; 16 import 'package:analyzer/instrumentation/instrumentation.dart';
17 import 'package:analyzer/source/pub_package_map_provider.dart';
18 import 'package:analyzer/src/generated/sdk_io.dart'; 18 import 'package:analyzer/src/generated/sdk_io.dart';
19 import 'package:plugin/plugin.dart'; 19 import 'package:plugin/plugin.dart';
20 20
21 /** 21 /**
22 * Instances of the class [SocketServer] implement the common parts of 22 * Instances of the class [SocketServer] implement the common parts of
23 * http-based and stdio-based analysis servers. The primary responsibility of 23 * http-based and stdio-based analysis servers. The primary responsibility of
24 * the SocketServer is to manage the lifetime of the AnalysisServer and to 24 * the SocketServer is to manage the lifetime of the AnalysisServer and to
25 * encode and decode the JSON messages exchanged with the client. 25 * encode and decode the JSON messages exchanged with the client.
26 */ 26 */
27 class SocketServer { 27 class SocketServer {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 } 74 }
75 75
76 Index index = null; 76 Index index = null;
77 if (!analysisServerOptions.noIndex) { 77 if (!analysisServerOptions.noIndex) {
78 index = createLocalFileIndex(); 78 index = createLocalFileIndex();
79 index.contributors = serverPlugin.indexContributors; 79 index.contributors = serverPlugin.indexContributors;
80 index.run(); 80 index.run();
81 } 81 }
82 82
83 analysisServer = new AnalysisServer(serverChannel, resourceProvider, 83 analysisServer = new AnalysisServer(serverChannel, resourceProvider,
84 new OptimizingPubPackageMapProvider(resourceProvider, defaultSdk), 84 new PubPackageMapProvider(resourceProvider, defaultSdk), index,
85 index, serverPlugin, analysisServerOptions, defaultSdk, 85 serverPlugin, analysisServerOptions, defaultSdk, instrumentationService,
86 instrumentationService,
87 contextManager: contextManager, 86 contextManager: contextManager,
88 packageResolverProvider: packageResolverProvider, 87 packageResolverProvider: packageResolverProvider,
89 rethrowExceptions: false); 88 rethrowExceptions: false);
90 analysisServer.userDefinedPlugins = userDefinedPlugins; 89 analysisServer.userDefinedPlugins = userDefinedPlugins;
91 } 90 }
92 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698