Table of Contents

Method FindReferencesAsync

Namespace
Alternet.Syntax.Parsers.Lsp
Assembly
Alternet.Syntax.Parsers.Lsp.v9.dll

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

position Point

Specifies position to find declaration.

references IRangeList

Retrieves references to found declaration.

allDocuments bool

Specifies if search needs to process all documents in the solution

cancellationToken CancellationToken

Cancellation token

Returns

Task<int>

Number of found references.