Table of Contents

Method HasCodeRefactorsAsync

Namespace
Alternet.Syntax.Parsers.Roslyn.CodeCompletion
Assembly
Alternet.Syntax.Parsers.Roslyn.v9.dll

HasCodeRefactorsAsync(Point, Point, bool, CancellationToken)

Determines if any code refactors are available at the given range in async mode.

public virtual Task<bool> HasCodeRefactorsAsync(Point startPos, Point endPos, bool allDocuments, CancellationToken cancellationToken)

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

True if there's any code refactor at the given range; otherwise false.

HasCodeRefactorsAsync(Document, TextSpan, bool, CancellationToken)

protected virtual Task<bool> HasCodeRefactorsAsync(Document document, TextSpan textSpan, bool allDocuments, CancellationToken cancellationToken)

Parameters

document Document
textSpan TextSpan
allDocuments bool
cancellationToken CancellationToken

Returns

Task<bool>