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
- documentDocument
- The document to refactor. 
- textSpanTextSpan
- Text span within the document. 
- allDocumentsbool
- Indicates whether all documents should be processed. 
- cancellationTokenCancellationToken
- Cancellation token. 
Returns
- Task<IEnumerable<CodeRefactoring>>
- List of - CodeRefactoringdescribes available refactoring.