OLD | NEW |
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 domain.completion; | 5 library domain.completion; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 9 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
10 import 'package:analysis_server/src/analysis_server.dart'; | 10 import 'package:analysis_server/src/analysis_server.dart'; |
11 import 'package:analysis_server/src/constants.dart'; | 11 import 'package:analysis_server/src/constants.dart'; |
12 import 'package:analysis_server/src/context_manager.dart'; | 12 import 'package:analysis_server/src/context_manager.dart'; |
13 import 'package:analysis_server/src/provisional/completion/completion_core.dart' | 13 import 'package:analysis_server/src/provisional/completion/completion_core.dart' |
14 show CompletionRequest, CompletionResult; | 14 show CompletionRequest, CompletionResult; |
| 15 import 'package:analysis_server/src/services/completion/completion_core.dart'; |
15 import 'package:analysis_server/src/services/completion/completion_manager.dart'
; | 16 import 'package:analysis_server/src/services/completion/completion_manager.dart'
; |
16 import 'package:analysis_server/src/services/search/search_engine.dart'; | 17 import 'package:analysis_server/src/services/search/search_engine.dart'; |
17 import 'package:analyzer/src/generated/engine.dart'; | 18 import 'package:analyzer/src/generated/engine.dart'; |
18 import 'package:analyzer/src/generated/source.dart'; | 19 import 'package:analyzer/src/generated/source.dart'; |
19 | 20 |
20 export 'package:analysis_server/src/services/completion/completion_manager.dart' | 21 export 'package:analysis_server/src/services/completion/completion_manager.dart' |
21 show CompletionPerformance, CompletionRequest, OperationPerformance; | 22 show CompletionPerformance, CompletionRequest, OperationPerformance; |
22 | 23 |
23 /** | 24 /** |
24 * Instances of the class [CompletionDomainHandler] implement a [RequestHandler] | 25 * Instances of the class [CompletionDomainHandler] implement a [RequestHandler] |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 if (_sourcesChangedSubscription != null) { | 285 if (_sourcesChangedSubscription != null) { |
285 _sourcesChangedSubscription.cancel(); | 286 _sourcesChangedSubscription.cancel(); |
286 _sourcesChangedSubscription = null; | 287 _sourcesChangedSubscription = null; |
287 } | 288 } |
288 if (_manager != null) { | 289 if (_manager != null) { |
289 _manager.dispose(); | 290 _manager.dispose(); |
290 _manager = null; | 291 _manager = null; |
291 } | 292 } |
292 } | 293 } |
293 } | 294 } |
OLD | NEW |