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
document
DocumentThe document to refactor.
textSpan
TextSpanText span within the document.
allDocuments
boolIndicates whether all documents should be processed.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<IEnumerable<CodeRefactoring>>
List of
CodeRefactoring
describes available refactoring.