Table of Contents

Method FindDeclarationAsync

Namespace
Alternet.Syntax
Assembly
Alternet.Syntax.v10.dll

FindDeclarationAsync(Point, bool, CancellationToken)

When implemented by a class, finds the declaration location at given position.

Task<SymbolLocation> FindDeclarationAsync(Point position, bool includeNonSource = false, CancellationToken cancellationToken = default)

Parameters

position Point

Specifies position to find.

includeNonSource bool

Specifies that locations should be returned even if it's not in the source files.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<SymbolLocation>

SymbolLocation represents location of the declaration.