| 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:analysis_server/src/protocol.dart'; | 8 import 'package:analysis_server/src/protocol.dart'; |
| 9 import 'package:analyzer/src/generated/ast.dart'; | 9 import 'package:analyzer/src/generated/ast.dart'; |
| 10 import 'package:analyzer/src/generated/engine.dart'; | 10 import 'package:analyzer/src/generated/engine.dart'; |
| 11 import 'package:analyzer/src/generated/source.dart'; | 11 import 'package:analyzer/src/generated/source.dart'; |
| 12 import 'package:analysis_server/completion/dart/completion_target.dart'; |
| 12 | 13 |
| 13 /** | 14 /** |
| 14 * An object used to produce completions for a specific error within a Dart | 15 * An object used to produce completions for a specific error within a Dart |
| 15 * file. Completion contributors are long-lived objects and must not retain any | 16 * file. Completion contributors are long-lived objects and must not retain any |
| 16 * state between invocations of [computeSuggestions]. | 17 * state between invocations of [computeSuggestions]. |
| 17 * | 18 * |
| 18 * Clients are expected to subtype this class when implementing plugins. | 19 * Clients are expected to subtype this class when implementing plugins. |
| 19 */ | 20 */ |
| 20 abstract class DartCompletionContributor extends CompletionContributor { | 21 abstract class DartCompletionContributor extends CompletionContributor { |
| 21 @override | 22 @override |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 72 |
| 72 /** | 73 /** |
| 73 * Cached information from a prior code completion operation. | 74 * Cached information from a prior code completion operation. |
| 74 */ | 75 */ |
| 75 //DartCompletionCache get cache; | 76 //DartCompletionCache get cache; |
| 76 | 77 |
| 77 /** | 78 /** |
| 78 * Return the completion target. This determines what part of the parse tree | 79 * Return the completion target. This determines what part of the parse tree |
| 79 * will receive the newly inserted text. | 80 * will receive the newly inserted text. |
| 80 */ | 81 */ |
| 81 //CompletionTarget get target; | 82 CompletionTarget get target; |
| 82 | 83 |
| 83 /** | 84 /** |
| 84 * Information about the types of suggestions that should be included. | 85 * Information about the types of suggestions that should be included. |
| 85 */ | 86 */ |
| 86 //OpType get _optype; | 87 //OpType get _optype; |
| 87 } | 88 } |
| OLD | NEW |