| 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/protocol/protocol.dart'; | 9 import 'package:analysis_server/protocol/protocol.dart'; |
| 10 import 'package:analysis_server/protocol/protocol_generated.dart'; | 10 import 'package:analysis_server/protocol/protocol_generated.dart'; |
| 11 import 'package:analysis_server/src/analysis_server.dart'; | 11 import 'package:analysis_server/src/analysis_server.dart'; |
| 12 import 'package:analysis_server/src/constants.dart'; | 12 import 'package:analysis_server/src/constants.dart'; |
| 13 import 'package:analysis_server/src/domain_abstract.dart'; | 13 import 'package:analysis_server/src/domain_abstract.dart'; |
| 14 import 'package:analysis_server/src/plugin/plugin_manager.dart'; | 14 import 'package:analysis_server/src/plugin/plugin_manager.dart'; |
| 15 import 'package:analysis_server/src/plugin/result_converter.dart'; | 15 import 'package:analysis_server/src/plugin/result_converter.dart'; |
| 16 import 'package:analysis_server/src/provisional/completion/completion_core.dart'
; | 16 import 'package:analysis_server/src/provisional/completion/completion_core.dart'
; |
| 17 import 'package:analysis_server/src/services/completion/completion_core.dart'; | 17 import 'package:analysis_server/src/services/completion/completion_core.dart'; |
| 18 import 'package:analysis_server/src/services/completion/completion_performance.d
art'; | 18 import 'package:analysis_server/src/services/completion/completion_performance.d
art'; |
| 19 import 'package:analyzer/src/dart/analysis/driver.dart'; | 19 import 'package:analyzer/src/dart/analysis/driver.dart'; |
| 20 import 'package:analyzer/src/generated/source.dart'; | 20 import 'package:analyzer/src/generated/source.dart'; |
| 21 import 'package:analyzer/src/source/source_resource.dart'; | |
| 22 import 'package:analyzer_plugin/protocol/protocol.dart' as plugin; | 21 import 'package:analyzer_plugin/protocol/protocol.dart' as plugin; |
| 23 import 'package:analyzer_plugin/protocol/protocol_constants.dart' as plugin; | 22 import 'package:analyzer_plugin/protocol/protocol_constants.dart' as plugin; |
| 24 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; | 23 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; |
| 25 | 24 |
| 26 /** | 25 /** |
| 27 * Instances of the class [CompletionDomainHandler] implement a [RequestHandler] | 26 * Instances of the class [CompletionDomainHandler] implement a [RequestHandler] |
| 28 * that handles requests in the completion domain. | 27 * that handles requests in the completion domain. |
| 29 */ | 28 */ |
| 30 class CompletionDomainHandler extends AbstractRequestHandler { | 29 class CompletionDomainHandler extends AbstractRequestHandler { |
| 31 /** | 30 /** |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 final int replacementOffset; | 293 final int replacementOffset; |
| 295 | 294 |
| 296 /** | 295 /** |
| 297 * The suggested completions. | 296 * The suggested completions. |
| 298 */ | 297 */ |
| 299 final List<CompletionSuggestion> suggestions; | 298 final List<CompletionSuggestion> suggestions; |
| 300 | 299 |
| 301 CompletionResult( | 300 CompletionResult( |
| 302 this.replacementOffset, this.replacementLength, this.suggestions); | 301 this.replacementOffset, this.replacementLength, this.suggestions); |
| 303 } | 302 } |
| OLD | NEW |