1 implementation of CanChangeNamespaceAsync
Microsoft.CodeAnalysis.Features (1)
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
36public abstract Task<bool> CanChangeNamespaceAsync(Document document, SyntaxNode container, CancellationToken cancellationToken);
6 references to CanChangeNamespaceAsync
Microsoft.CodeAnalysis.Features (4)
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
85/// <see cref="IChangeNamespaceService.CanChangeNamespaceAsync(Document, SyntaxNode, CancellationToken)"/>
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.State.cs (1)
95var canChange = await changeNamespaceService.CanChangeNamespaceAsync(document, applicableNode, cancellationToken).ConfigureAwait(false);
MoveToNamespace\AbstractMoveToNamespaceService.cs (2)
106if (await changeNamespaceService.CanChangeNamespaceAsync(document, declarationSyntax, cancellationToken).ConfigureAwait(false)) 150if (await changeNamespaceService.CanChangeNamespaceAsync(document, container, cancellationToken).ConfigureAwait(false))
Microsoft.CodeAnalysis.Workspaces (2)
ChangeNamespace\IChangeNamespaceService.cs (2)
46/// Change will only be made if <see cref="CanChangeNamespaceAsync"/> returns <see langword="true"/> and <paramref name="targetNamespace"/> 61/// use namespace containers considered valid by <see cref="CanChangeNamespaceAsync(Document, SyntaxNode, CancellationToken)"/>