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)
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
Returns
FindReferencesAsync(Point, bool, CancellationToken)
protected virtual Task<IRangeList> FindReferencesAsync(Point position, bool allDocuments, CancellationToken cancellationToken)
Parameters
position
PointallDocuments
boolcancellationToken
CancellationToken