Method FindReferencesAsync
FindReferencesAsync(Point, CancellationToken)
Locates and highlights references at given position in the text.
public virtual Task FindReferencesAsync(Point position, CancellationToken cancellationToken = default)
Parameters
position
PointSpecifies position to find declaration.
cancellationToken
CancellationTokenCancellation token
Returns
FindReferencesAsync(Point, IRangeList, bool, CancellationToken)
Locates declaration at given position and finds all references to this declaration in the text.
public virtual Task<int> FindReferencesAsync(Point position, IRangeList references, bool allDocuments = false, CancellationToken cancellationToken = default)
Parameters
position
PointSpecifies position to find declaration.
references
IRangeListRetrieves references to found declaration.
allDocuments
boolSpecifies if search needs to process all documents in the solution
cancellationToken
CancellationTokenCancellation token