1 write to DeclarationStatement
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
62
DeclarationStatement
= node;
13 references to DeclarationStatement
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (9)
93
editor.RemoveNode(state.
DeclarationStatement
);
99
var statementIndex = state.OutermostBlockStatements.IndexOf(state.
DeclarationStatement
);
107
editor.RemoveNode(state.
DeclarationStatement
);
122
state.
DeclarationStatement
, document, cancellationToken: cancellationToken).ConfigureAwait(false);
146
var statementIndex = state.OutermostBlockStatements.IndexOf(state.
DeclarationStatement
);
153
bannerService.GetLeadingBlankLines(state.
DeclarationStatement
)));
168
GetMergedTrivia(bannerService, state.
DeclarationStatement
, state.FirstStatementAffectedInInnermostBlock));
224
document, localSymbol, state.
DeclarationStatement
, right, cancellationToken).ConfigureAwait(false);
243
return state.
DeclarationStatement
.ReplaceNode(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (4)
64
var variables = syntaxFacts.GetVariablesOfLocalDeclarationStatement(
DeclarationStatement
);
76
OutermostBlock = blockFacts.GetStatementContainer(
DeclarationStatement
);
135
if (FirstStatementAffectedInInnermostBlock ==
DeclarationStatement
)
140
IndexOfDeclarationStatementInInnermostBlock = InnermostBlockStatements.IndexOf(
DeclarationStatement
);