Method FindDeclarationAsync
FindDeclarationAsync(Point, bool)
Finds the declaration of the symbol under a given position
public virtual Task<SymbolLocation> FindDeclarationAsync(Point position, bool includeNonSource = false)
Parameters
position
PointPosition within the text
includeNonSource
boolSpecifies that locations should be returned even if it's not in the source files.
Returns
- Task<SymbolLocation>
Declaration symbol location
FindDeclarationAsync()
Finds the declaration of the symbol at the current position.
public virtual Task<SymbolLocation> FindDeclarationAsync()
Returns
- Task<SymbolLocation>
Declaration symbol location