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)
93editor.RemoveNode(state.DeclarationStatement); 99var statementIndex = state.OutermostBlockStatements.IndexOf(state.DeclarationStatement); 107editor.RemoveNode(state.DeclarationStatement); 122state.DeclarationStatement, document, cancellationToken: cancellationToken).ConfigureAwait(false); 146var statementIndex = state.OutermostBlockStatements.IndexOf(state.DeclarationStatement); 153bannerService.GetLeadingBlankLines(state.DeclarationStatement))); 168GetMergedTrivia(bannerService, state.DeclarationStatement, state.FirstStatementAffectedInInnermostBlock)); 224document, localSymbol, state.DeclarationStatement, right, cancellationToken).ConfigureAwait(false); 243return 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);