Table of Contents

Method FindReferencesAsync

Namespace
Alternet.Syntax
Assembly
Alternet.Syntax.v9.dll

FindReferencesAsync(Point, CancellationToken)

Locates and highlights references at given position in the text.

public virtual Task FindReferencesAsync(Point position, CancellationToken cancellationToken = default)

Parameters

position Point

Specifies position to find declaration.

cancellationToken CancellationToken

Cancellation token

Returns

Task

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 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.