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