1 write to DeclarationStatement
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
62DeclarationStatement = node;
13 references to DeclarationStatement
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (9)
94editor.RemoveNode(state.DeclarationStatement); 100var statementIndex = state.OutermostBlockStatements.IndexOf(state.DeclarationStatement); 108editor.RemoveNode(state.DeclarationStatement); 123state.DeclarationStatement, document, cancellationToken: cancellationToken).ConfigureAwait(false); 147var statementIndex = state.OutermostBlockStatements.IndexOf(state.DeclarationStatement); 154bannerService.GetLeadingBlankLines(state.DeclarationStatement))); 169GetMergedTrivia(bannerService, state.DeclarationStatement, state.FirstStatementAffectedInInnermostBlock)); 225document, localSymbol, state.DeclarationStatement, right, cancellationToken).ConfigureAwait(false); 244return state.DeclarationStatement.ReplaceNode(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (4)
64var variables = syntaxFacts.GetVariablesOfLocalDeclarationStatement(DeclarationStatement); 76OutermostBlock = blockFacts.GetStatementContainer(DeclarationStatement); 135if (FirstStatementAffectedInInnermostBlock == DeclarationStatement) 140IndexOfDeclarationStatementInInnermostBlock = InnermostBlockStatements.IndexOf(DeclarationStatement);