| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 * This may be `null` if the library for a part file cannot be determined. | 93 * This may be `null` if the library for a part file cannot be determined. |
| 94 */ | 94 */ |
| 95 Source get librarySource; | 95 Source get librarySource; |
| 96 | 96 |
| 97 /** | 97 /** |
| 98 * Answer the [DartType] for Object in dart:core | 98 * Answer the [DartType] for Object in dart:core |
| 99 */ | 99 */ |
| 100 DartType get objectType; | 100 DartType get objectType; |
| 101 | 101 |
| 102 /** | 102 /** |
| 103 * Return the [SourceFactory] of the request. |
| 104 */ |
| 105 SourceFactory get sourceFactory; |
| 106 |
| 107 /** |
| 103 * Return the completion target. This determines what part of the parse tree | 108 * Return the completion target. This determines what part of the parse tree |
| 104 * will receive the newly inserted text. | 109 * will receive the newly inserted text. |
| 105 * At a minimum, all declarations in the completion scope in [target.unit] | 110 * At a minimum, all declarations in the completion scope in [target.unit] |
| 106 * will be resolved if they can be resolved. | 111 * will be resolved if they can be resolved. |
| 107 */ | 112 */ |
| 108 CompletionTarget get target; | 113 CompletionTarget get target; |
| 109 | 114 |
| 110 /** | 115 /** |
| 111 * Return a [Future] that completes when the element associated with | 116 * Return a [Future] that completes when the element associated with |
| 112 * the given [expression] in the target compilation unit is available. | 117 * the given [expression] in the target compilation unit is available. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 140 /** | 145 /** |
| 141 * Return a [Future] that completes with a list of [CompilationUnitElement]s | 146 * Return a [Future] that completes with a list of [CompilationUnitElement]s |
| 142 * comprising the library in which in which the completion is occurring. | 147 * comprising the library in which in which the completion is occurring. |
| 143 * The [Future] may return `null` if the library unit cannot be determined | 148 * The [Future] may return `null` if the library unit cannot be determined |
| 144 * (e.g. unlinked part file). | 149 * (e.g. unlinked part file). |
| 145 * Any information obtained from [target] prior to calling this method | 150 * Any information obtained from [target] prior to calling this method |
| 146 * should be discarded as it may have changed. | 151 * should be discarded as it may have changed. |
| 147 */ | 152 */ |
| 148 Future<List<CompilationUnitElement>> resolveUnits(); | 153 Future<List<CompilationUnitElement>> resolveUnits(); |
| 149 } | 154 } |
| OLD | NEW |