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

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

Issue 2957643002: Remove the unused operations queue (Closed)
Patch Set: Created 3 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 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 'dart:async'; 5 import 'dart:async';
6 import 'dart:core'; 6 import 'dart:core';
7 7
8 import 'package:analysis_server/plugin/analysis/analysis_domain.dart'; 8 import 'package:analysis_server/plugin/analysis/analysis_domain.dart';
9 import 'package:analysis_server/src/analysis_server.dart'; 9 import 'package:analysis_server/src/analysis_server.dart';
10 import 'package:analysis_server/src/computer/computer_hover.dart'; 10 import 'package:analysis_server/src/computer/computer_hover.dart';
11 import 'package:analysis_server/src/constants.dart'; 11 import 'package:analysis_server/src/constants.dart';
12 import 'package:analysis_server/src/domain_abstract.dart'; 12 import 'package:analysis_server/src/domain_abstract.dart';
13 import 'package:analysis_server/src/domains/analysis/navigation.dart'; 13 import 'package:analysis_server/src/domains/analysis/navigation.dart';
14 import 'package:analysis_server/src/domains/analysis/navigation_dart.dart'; 14 import 'package:analysis_server/src/domains/analysis/navigation_dart.dart';
15 import 'package:analysis_server/src/operation/operation_analysis.dart'
16 show NavigationOperation, OccurrencesOperation;
17 import 'package:analysis_server/src/plugin/plugin_manager.dart'; 15 import 'package:analysis_server/src/plugin/plugin_manager.dart';
18 import 'package:analysis_server/src/plugin/request_converter.dart'; 16 import 'package:analysis_server/src/plugin/request_converter.dart';
19 import 'package:analysis_server/src/plugin/result_merger.dart'; 17 import 'package:analysis_server/src/plugin/result_merger.dart';
20 import 'package:analysis_server/src/protocol/protocol_internal.dart'; 18 import 'package:analysis_server/src/protocol/protocol_internal.dart';
21 import 'package:analysis_server/src/protocol_server.dart'; 19 import 'package:analysis_server/src/protocol_server.dart';
22 import 'package:analyzer/dart/ast/ast.dart'; 20 import 'package:analyzer/dart/ast/ast.dart';
23 import 'package:analyzer/error/error.dart' as engine; 21 import 'package:analyzer/error/error.dart' as engine;
24 import 'package:analyzer/exception/exception.dart'; 22 import 'package:analyzer/exception/exception.dart';
25 import 'package:analyzer/file_system/file_system.dart'; 23 import 'package:analyzer/file_system/file_system.dart';
26 import 'package:analyzer/src/dart/analysis/driver.dart'; 24 import 'package:analyzer/src/dart/analysis/driver.dart';
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 <ResultDescriptor, StreamController<engine.ResultChangedEvent>>{}; 429 <ResultDescriptor, StreamController<engine.ResultChangedEvent>>{};
432 430
433 AnalysisDomainImpl(this.server) { 431 AnalysisDomainImpl(this.server) {
434 // TODO(brianwilkerson) The onContextsChanged stream is no longer written to . 432 // TODO(brianwilkerson) The onContextsChanged stream is no longer written to .
435 // Figure out whether this code still needs to be here and convert it to use 433 // Figure out whether this code still needs to be here and convert it to use
436 // the analysis driver if it does. 434 // the analysis driver if it does.
437 // server.onContextsChanged.listen((ContextsChangedEvent event) { 435 // server.onContextsChanged.listen((ContextsChangedEvent event) {
438 // event.added.forEach(_subscribeForContext); 436 // event.added.forEach(_subscribeForContext);
439 // }); 437 // });
440 } 438 }
441
442 @override
443 void scheduleNotification(
444 engine.AnalysisContext context, Source source, AnalysisService service) {
445 String file = source.fullName;
446 if (server.hasAnalysisSubscription(service, file)) {
447 if (service == AnalysisService.NAVIGATION) {
448 server.scheduleOperation(new NavigationOperation(context, source));
449 }
450 if (service == AnalysisService.OCCURRENCES) {
451 server.scheduleOperation(new OccurrencesOperation(context, source));
452 }
453 }
454 }
455 } 439 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/lib/src/operation/operation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698