| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.completion.completion_dart; | 5 library analysis_server.completion.completion_dart; |
| 6 | 6 |
| 7 import 'package:analysis_server/completion/completion_core.dart'; | 7 import 'package:analysis_server/completion/completion_core.dart'; |
| 8 import 'package:analyzer/src/generated/ast.dart'; | 8 import 'package:analyzer/src/generated/ast.dart'; |
| 9 | 9 |
| 10 /** |
| 11 * An object used to produce completions for a specific error within a Dart |
| 12 * file. Completion contributors are long-lived objects and must not retain any |
| 13 * state between invocations of [computeSuggestions]. |
| 14 * |
| 15 * Clients are expected to subtype this class when implementing plugins. |
| 16 */ |
| 10 abstract class DartCompletionContributor extends CompletionContributor { | 17 abstract class DartCompletionContributor extends CompletionContributor { |
| 11 @override | 18 @override |
| 12 CompletionResult computeSuggestions(CompletionRequest request) { | 19 CompletionResult computeSuggestions(CompletionRequest request) { |
| 13 // TODO(brianwilkerson) Implement this by getting the information required | 20 // TODO(brianwilkerson) Implement this by getting the information required |
| 14 // to create a DartCompletionRequest and calling: | 21 // to create a DartCompletionRequest and calling: |
| 15 // return internalComputeSuggestions(dartRequest); | 22 // return internalComputeSuggestions(dartRequest); |
| 16 return null; | 23 return null; |
| 17 } | 24 } |
| 18 | 25 |
| 19 /** | 26 /** |
| (...skipping 28 matching lines...) Expand all Loading... |
| 48 * The completion target. This determines what part of the parse tree | 55 * The completion target. This determines what part of the parse tree |
| 49 * will receive the newly inserted text. | 56 * will receive the newly inserted text. |
| 50 */ | 57 */ |
| 51 //CompletionTarget get target; | 58 //CompletionTarget get target; |
| 52 | 59 |
| 53 /** | 60 /** |
| 54 * Information about the types of suggestions that should be included. | 61 * Information about the types of suggestions that should be included. |
| 55 */ | 62 */ |
| 56 //OpType get _optype; | 63 //OpType get _optype; |
| 57 } | 64 } |
| OLD | NEW |