Method GetRefactoringsAsync
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
documentDocumentThe document to refactor.
textSpanTextSpanText span within the document.
allDocumentsboolIndicates whether all documents should be processed.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IEnumerable<CodeRefactoring>>
List of
CodeRefactoringdescribes available refactoring.