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

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

Issue 2672973002: Replace computeNode() with AstProvider in search. (Closed)
Patch Set: Created 3 years, 10 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 analysis.server; 5 library analysis.server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:core'; 9 import 'dart:core';
10 import 'dart:io' as io; 10 import 'dart:io' as io;
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 onAnalysisStarted.first.then((_) { 423 onAnalysisStarted.first.then((_) {
424 onAnalysisComplete.then((_) { 424 onAnalysisComplete.then((_) {
425 performanceAfterStartup = new ServerPerformance(); 425 performanceAfterStartup = new ServerPerformance();
426 _performance = performanceAfterStartup; 426 _performance = performanceAfterStartup;
427 }); 427 });
428 }); 428 });
429 _setupIndexInvalidation(); 429 _setupIndexInvalidation();
430 if (options.enableNewAnalysisDriver) { 430 if (options.enableNewAnalysisDriver) {
431 searchEngine = new SearchEngineImpl2(driverMap.values); 431 searchEngine = new SearchEngineImpl2(driverMap.values);
432 } else if (index != null) { 432 } else if (index != null) {
433 searchEngine = new SearchEngineImpl(index); 433 searchEngine = new SearchEngineImpl(index, getAstProvider);
434 } 434 }
435 pubSummaryManager = 435 pubSummaryManager =
436 new PubSummaryManager(resourceProvider, '${io.pid}.temp'); 436 new PubSummaryManager(resourceProvider, '${io.pid}.temp');
437 Notification notification = new ServerConnectedParams(VERSION, io.pid, 437 Notification notification = new ServerConnectedParams(VERSION, io.pid,
438 sessionId: instrumentationService.sessionId) 438 sessionId: instrumentationService.sessionId)
439 .toNotification(); 439 .toNotification();
440 channel.sendNotification(notification); 440 channel.sendNotification(notification);
441 channel.listen(handleRequest, onDone: done, onError: error); 441 channel.listen(handleRequest, onDone: done, onError: error);
442 handlers = serverPlugin.createDomains(this); 442 handlers = serverPlugin.createDomains(this);
443 } 443 }
(...skipping 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after
2127 /** 2127 /**
2128 * The [PerformanceTag] for time spent in server request handlers. 2128 * The [PerformanceTag] for time spent in server request handlers.
2129 */ 2129 */
2130 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); 2130 static PerformanceTag serverRequests = new PerformanceTag('serverRequests');
2131 2131
2132 /** 2132 /**
2133 * The [PerformanceTag] for time spent in split store microtasks. 2133 * The [PerformanceTag] for time spent in split store microtasks.
2134 */ 2134 */
2135 static PerformanceTag splitStore = new PerformanceTag('splitStore'); 2135 static PerformanceTag splitStore = new PerformanceTag('splitStore');
2136 } 2136 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698