Method FindReferencesAsync
FindReferencesAsync(Point, IRangeList, bool, CancellationToken)
Locates declaration at given position and finds all references to this declaration in the text.
public override Task<int> FindReferencesAsync(Point position, IRangeList references, bool allDocuments, CancellationToken cancellationToken = default)
Parameters
positionPointSpecifies position to find declaration.
referencesIRangeListRetrieves references to found declaration.
allDocumentsboolSpecifies if search needs to process all documents in the solution
cancellationTokenCancellationTokenCancellation token