Method FindDeclarationAsync
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
positionPointSpecifies position to find.
includeNonSourceboolSpecifies that locations should be returned even if it's not in the source files.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<SymbolLocation>
SymbolLocationrepresents location of the declaration.