20 references to MoveTypeOperationKind
Microsoft.CodeAnalysis.Features (20)
CodeRefactorings\MoveType\AbstractMoveTypeService.cs (7)
30public static SyntaxAnnotation NamespaceScopeMovedAnnotation = new(nameof(MoveTypeOperationKind.MoveTypeNamespaceScope)); 32public abstract Task<Solution> GetModifiedSolutionAsync(Document document, TextSpan textSpan, MoveTypeOperationKind operationKind, CancellationToken cancellationToken); 58public override async Task<Solution> GetModifiedSolutionAsync(Document document, TextSpan textSpan, MoveTypeOperationKind operationKind, CancellationToken cancellationToken) 137actions.Add(GetCodeAction(state, fileName, operationKind: MoveTypeOperationKind.MoveType)); 147actions.Add(GetCodeAction(state, fileName, operationKind: MoveTypeOperationKind.RenameFile)); 156operationKind: MoveTypeOperationKind.RenameType)); 168private CodeAction GetCodeAction(State state, string fileName, MoveTypeOperationKind operationKind)
CodeRefactorings\MoveType\AbstractMoveTypeService.Editor.cs (5)
52public static Editor GetEditor(MoveTypeOperationKind operationKind, TService service, State state, string fileName, CancellationToken cancellationToken) 55MoveTypeOperationKind.MoveType => new MoveTypeEditor(service, state, fileName, cancellationToken), 56MoveTypeOperationKind.RenameType => new RenameTypeEditor(service, state, fileName, cancellationToken), 57MoveTypeOperationKind.RenameFile => new RenameFileEditor(service, state, fileName, cancellationToken), 58MoveTypeOperationKind.MoveTypeNamespaceScope => new MoveTypeNamespaceScopeEditor(service, state, fileName, cancellationToken),
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeCodeAction.cs (6)
22private readonly MoveTypeOperationKind _operationKind; 29MoveTypeOperationKind operationKind, 42MoveTypeOperationKind.MoveType => string.Format(FeaturesResources.Move_type_to_0, _fileName), 43MoveTypeOperationKind.RenameType => string.Format(FeaturesResources.Rename_type_to_0, _state.DocumentNameWithoutExtension), 44MoveTypeOperationKind.RenameFile => string.Format(FeaturesResources.Rename_file_to_0, _fileName), 45MoveTypeOperationKind.MoveTypeNamespaceScope => string.Empty,
CodeRefactorings\MoveType\IMoveTypeService.cs (1)
21Task<Solution> GetModifiedSolutionAsync(Document document, TextSpan textSpan, MoveTypeOperationKind operationKind, CancellationToken cancellationToken);
MoveToNamespace\AbstractMoveToNamespaceService.cs (1)
253MoveTypeOperationKind.MoveTypeNamespaceScope,