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.src.provisional.completion.completion_dart; | 5 library analysis_server.src.provisional.completion.completion_dart; |
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/provisional/completion/completion_core.dart'
; | 10 import 'package:analysis_server/src/provisional/completion/completion_core.dart'
; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 * Return a [Future] that completes with a compilation unit in which | 85 * Return a [Future] that completes with a compilation unit in which |
86 * all declarations in all scopes containing [target] have been resolved. | 86 * all declarations in all scopes containing [target] have been resolved. |
87 * The [Future] may return `null` if the unit cannot be resolved | 87 * The [Future] may return `null` if the unit cannot be resolved |
88 * (e.g. unlinked part file). | 88 * (e.g. unlinked part file). |
89 * Any information obtained from [target] prior to calling this method | 89 * Any information obtained from [target] prior to calling this method |
90 * should be discarded as it may have changed. | 90 * should be discarded as it may have changed. |
91 */ | 91 */ |
92 Future<CompilationUnit> resolveDeclarationsInScope(); | 92 Future<CompilationUnit> resolveDeclarationsInScope(); |
93 | 93 |
94 /** | 94 /** |
| 95 * Return a [Future] that completes with a list of directives for the library |
| 96 * in which in which the completion is occurring. |
| 97 * The [Future] may return `null` if the library unit cannot be determined |
| 98 * (e.g. unlinked part file). |
| 99 * Any information obtained from [target] prior to calling this method |
| 100 * should be discarded as it may have changed. |
| 101 */ |
| 102 Future<List<Directive>> resolveDirectives(); |
| 103 |
| 104 /** |
95 * Return a [Future] that completes when the element associated with | 105 * Return a [Future] that completes when the element associated with |
96 * the given [expression] in the target compilation unit is available. | 106 * the given [expression] in the target compilation unit is available. |
97 * It may also complete if the expression cannot be resolved | 107 * It may also complete if the expression cannot be resolved |
98 * (e.g. unknown identifier, completion aborted, etc). | 108 * (e.g. unknown identifier, completion aborted, etc). |
99 * Any information obtained from [target] prior to calling this method | 109 * Any information obtained from [target] prior to calling this method |
100 * should be discarded as it may have changed. | 110 * should be discarded as it may have changed. |
101 */ | 111 */ |
102 Future resolveExpression(Expression expression); | 112 Future resolveExpression(Expression expression); |
103 } | 113 } |
OLD | NEW |