Member group
GetCompletionsAsync
Declaring type: CompletionService
Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: CompletionService.cs
Overloads / Variants
GetCompletionsAsync
func GetCompletionsAsync(compilation: Compilation, syntaxTree: SyntaxTree, position: int, cancellationToken: CancellationToken = default) -> Task<ImmutableArray<CompletionItem>>
Source file: CompletionService.cs
Gets the completion items available at the specified position asynchronously.
Parameters
| Name | Type | Description |
|---|---|---|
compilation |
Compilation | The compilation that contains the syntax tree. |
syntaxTree |
SyntaxTree | The syntax tree being queried. |
position |
Int32 | The position within the syntax tree. |
cancellationToken |
CancellationToken | Token used to cancel the operation. |
Return value
Task<ImmutableArray<CompletionItem>>
A materialized set of completion items applicable at the position.
GetCompletionsAsync
func GetCompletionsAsync(semanticModel: SemanticModel, position: int, cancellationToken: CancellationToken = default) -> Task<ImmutableArray<CompletionItem>>
Source file: CompletionService.cs
Parameters
| Name | Type | Description |
|---|---|---|
semanticModel |
SemanticModel | |
position |
Int32 | |
cancellationToken |
CancellationToken |
Return value
Task<ImmutableArray<CompletionItem>>