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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 * all declarations in all scopes containing [target] have been resolved. | 81 * all declarations in all scopes containing [target] have been resolved. |
82 * The [Future] may return `null` if the unit cannot be resolved | 82 * The [Future] may return `null` if the unit cannot be resolved |
83 * (e.g. unlinked part file). | 83 * (e.g. unlinked part file). |
84 * Any information obtained from [target] prior to calling this method | 84 * Any information obtained from [target] prior to calling this method |
85 * should be discarded as it may have changed. | 85 * should be discarded as it may have changed. |
86 */ | 86 */ |
87 Future<CompilationUnit> resolveDeclarationsInScope(); | 87 Future<CompilationUnit> resolveDeclarationsInScope(); |
88 | 88 |
89 /** | 89 /** |
90 * Return a [Future] that completes when the element associated with | 90 * Return a [Future] that completes when the element associated with |
91 * the given [identifier] is available or if the identifier cannot be resolved | 91 * the given [expression] in the target compilation unit is available. |
| 92 * It may also complete if the expression cannot be resolved |
92 * (e.g. unknown identifier, completion aborted, etc). | 93 * (e.g. unknown identifier, completion aborted, etc). |
93 * Any information obtained from [target] prior to calling this method | 94 * Any information obtained from [target] prior to calling this method |
94 * should be discarded as it may have changed. | 95 * should be discarded as it may have changed. |
95 */ | 96 */ |
96 Future resolveIdentifier(SimpleIdentifier identifier); | 97 Future resolveExpression(Expression expression); |
97 } | 98 } |
OLD | NEW |