1 implementation of CanChangeNamespaceAsync
Microsoft.CodeAnalysis.Features (1)
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
40public abstract Task<bool> CanChangeNamespaceAsync(Document document, SyntaxNode container, CancellationToken cancellationToken);
6 references to CanChangeNamespaceAsync
Microsoft.CodeAnalysis.Features (4)
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
100/// <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)
100if (await changeNamespaceService.CanChangeNamespaceAsync(document, declarationSyntax, cancellationToken).ConfigureAwait(false)) 152if (await changeNamespaceService.CanChangeNamespaceAsync(document, container, cancellationToken).ConfigureAwait(false))
Microsoft.CodeAnalysis.Workspaces (2)
ChangeNamespace\IChangeNamespaceService.cs (2)
47/// Change will only be made if <see cref="CanChangeNamespaceAsync"/> returns <see langword="true"/> and <paramref name="targetNamespace"/> 62/// use namespace containers considered valid by <see cref="CanChangeNamespaceAsync(Document, SyntaxNode, CancellationToken)"/>