Table of Contents

Method GetRefactoringsAsync

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

GetRefactoringsAsync(Document, TextSpan, bool, CancellationToken)

Retrieves a list of CodeRefactoring for specified text spans inside a given document.

public Task<IEnumerable<CodeRefactoring>> GetRefactoringsAsync(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<IEnumerable<CodeRefactoring>>

List of CodeRefactoring describes available refactoring.