Table of Contents

Method HasCodeRefactors

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

HasCodeRefactors(Document, TextSpan, bool, CancellationToken)

Indicates whether the document has any code refactors for the specified text span.

public Task<bool> HasCodeRefactors(Document document, TextSpan textSpan, bool allDocuments, CancellationToken cancellationToken)

Parameters

document Document

The document to refactor.

textSpan TextSpan

Text span within the document.

allDocuments bool

Indicates whether all documents should be processed.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<bool>

True if there is at least one refactor for the specified span; otherwise, false.