1 write to FirstStatementAffectedInInnermostBlock
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
128
FirstStatementAffectedInInnermostBlock
= InnermostBlockStatements.Cast<TStatementSyntax>().FirstOrDefault(allAffectedStatements.Contains);
12 references to FirstStatementAffectedInInnermostBlock
Microsoft.CodeAnalysis.CodeStyle.Fixes (12)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (7)
101
state.OutermostBlockStatements[statementIndex + 1] == state.
FirstStatementAffectedInInnermostBlock
)
132
var newNextStatement = state.
FirstStatementAffectedInInnermostBlock
;
137
state.
FirstStatementAffectedInInnermostBlock
,
168
GetMergedTrivia(bannerService, state.DeclarationStatement, state.
FirstStatementAffectedInInnermostBlock
));
171
state.
FirstStatementAffectedInInnermostBlock
,
213
var firstStatement = state.
FirstStatementAffectedInInnermostBlock
;
240
state.
FirstStatementAffectedInInnermostBlock
,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (5)
130
if (
FirstStatementAffectedInInnermostBlock
== null)
135
if (
FirstStatementAffectedInInnermostBlock
== DeclarationStatement)
141
IndexOfFirstStatementAffectedInInnermostBlock = InnermostBlockStatements.IndexOf(
FirstStatementAffectedInInnermostBlock
);
171
var previousToken =
FirstStatementAffectedInInnermostBlock
.GetFirstToken().GetPreviousToken();
172
var affectedSpan = TextSpan.FromBounds(previousToken.SpanStart,
FirstStatementAffectedInInnermostBlock
.Span.End);