API Browser

Method

GetCompletionsAsync

func GetCompletionsAsync(syntaxTree: SyntaxTree, position: int, cancellationToken: CancellationToken = default) -> Task<ImmutableArray<CompletionItem>>

Declaring type: Compilation
Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: Compilation.Conversions.cs, Compilation.DeclarationAccess.cs, Compilation.DeclaredSymbolState.cs, Compilation.Diagnostics.cs, Compilation.Emit.cs, Compilation.EntryPoint.cs, Compilation.IncrementalState.cs, Compilation.IncrementalStateTransfer.cs, Compilation.LocalMacros.cs, Compilation.NativeSelf.cs, Compilation.RuntimeTypeOf.cs, Compilation.SemanticModel.cs, Compilation.SynthesizedMethodBodies.cs, Compilation.SynthesizedTypes.cs, Compilation.TargetCore.cs, Compilation.TargetInitialization.cs, Compilation.cs

Gets completion items available at a position in a syntax tree within this compilation asynchronously.

Parameters

Name Type Description
syntaxTree SyntaxTree The syntax tree to query.
position Int32 The zero-based position in the syntax tree.
cancellationToken CancellationToken Token used to cancel the operation.

Return value

Task<ImmutableArray<CompletionItem>>

A materialized set of completion items.