Method
GetRefactorings
func GetRefactorings(documentId: DocumentId, providers: IEnumerable<CodeRefactoringProvider>, span: TextSpan, cancellationToken: CancellationToken = default) -> ImmutableArray<CodeRefactoring>
Declaring type: Workspace
Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: Workspace.cs
Gets context-driven refactorings for the specified document and selection span.
Parameters
| Name | Type | Description |
|---|---|---|
documentId |
DocumentId | |
providers |
IEnumerable<CodeRefactoringProvider> | |
span |
TextSpan | |
cancellationToken |
CancellationToken |
Return value
ImmutableArray<CodeRefactoring>