Table of Contents

Method FindReferencesAsync

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

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 Point

Specifies position to find declaration.

cancellationToken CancellationToken

Cancellation token

Returns

Task

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