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 test.services.completion.dart; | 5 library test.services.completion.dart; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_services/completion/completion_manager.dart'; | 9 import 'package:analysis_server/src/services/completion/completion_manager.dart'
; |
10 import 'package:analysis_services/completion/completion_suggestion.dart'; | 10 import 'package:analysis_server/src/services/completion/completion_suggestion.da
rt'; |
11 import 'package:analysis_services/search/search_engine.dart'; | 11 import 'package:analysis_server/src/services/search/search_engine.dart'; |
12 import 'package:analysis_services/src/completion/imported_type_computer.dart'; | 12 import 'package:analysis_server/src/services/completion/imported_type_computer.d
art'; |
13 import 'package:analysis_services/src/completion/invocation_computer.dart'; | 13 import 'package:analysis_server/src/services/completion/invocation_computer.dart
'; |
14 import 'package:analysis_services/src/completion/keyword_computer.dart'; | 14 import 'package:analysis_server/src/services/completion/keyword_computer.dart'; |
15 import 'package:analysis_services/src/completion/local_computer.dart'; | 15 import 'package:analysis_server/src/services/completion/local_computer.dart'; |
16 import 'package:analyzer/src/generated/ast.dart'; | 16 import 'package:analyzer/src/generated/ast.dart'; |
17 import 'package:analyzer/src/generated/element.dart'; | 17 import 'package:analyzer/src/generated/element.dart'; |
18 import 'package:analyzer/src/generated/engine.dart'; | 18 import 'package:analyzer/src/generated/engine.dart'; |
19 import 'package:analyzer/src/generated/source.dart'; | 19 import 'package:analyzer/src/generated/source.dart'; |
20 | 20 |
21 /** | 21 /** |
22 * The base class for computing code completion suggestions. | 22 * The base class for computing code completion suggestions. |
23 */ | 23 */ |
24 abstract class DartCompletionComputer { | 24 abstract class DartCompletionComputer { |
25 /** | 25 /** |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 AstNode node; | 182 AstNode node; |
183 | 183 |
184 /** | 184 /** |
185 * The list of suggestions to be sent to the client. | 185 * The list of suggestions to be sent to the client. |
186 */ | 186 */ |
187 final List<CompletionSuggestion> suggestions = []; | 187 final List<CompletionSuggestion> suggestions = []; |
188 | 188 |
189 DartCompletionRequest(this.context, this.searchEngine, this.source, | 189 DartCompletionRequest(this.context, this.searchEngine, this.source, |
190 this.offset); | 190 this.offset); |
191 } | 191 } |
OLD | NEW |