Method GetRefactoringsAsync
GetRefactoringsAsync(Document, TextSpan, bool, CancellationToken)
When implemented by a class, retrieves a list of CodeRefactoring
for specified text spans inside a given document.
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.