Table of Contents

Method GetCodeRefactorsAsync

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

GetCodeRefactorsAsync(Point, Point, bool, CancellationToken)

Retrieves all applicable refactors at given range in async mode.

public virtual Task<IList<ICodeRefactor>> GetCodeRefactorsAsync(Point startPos, Point endPos, bool allDocuments = false, CancellationToken cancellationToken = default)

Parameters

startPos Point

Star position within the text.

endPos Point

End position within the text..

allDocuments bool

Specifies all documents in the solution needs to be processed.

cancellationToken CancellationToken

Cancellation token

Returns

Task<IList<ICodeRefactor>>

Collection of available code refactors