Method FindReferencesAsync
FindReferencesAsync(Point, CancellationToken)
When implemented by a class, locates and highlights references at given position in the text.
Task FindReferencesAsync(Point position, CancellationToken cancellationToken = default)
Parameters
position
PointSpecifies position to find declaration.
cancellationToken
CancellationTokenCancellation token
Returns
FindReferencesAsync(Point, IRangeList, bool, CancellationToken)
When implemented by a class, locates declaration at given position and finds all references to this declaration in the text.
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