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