1 write to VariableDeclarator
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
70
VariableDeclarator
= (TVariableDeclaratorSyntax)variables[0];
7 references to VariableDeclarator
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (4)
210
var initializer = syntaxFacts.GetInitializerOfVariableDeclarator(state.
VariableDeclarator
);
245
state.
VariableDeclarator
,
247
state.
VariableDeclarator
.WithoutTrailingTrivia(),
249
.WithTrailingTrivia(state.
VariableDeclarator
.GetTrailingTrivia()));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (3)
71
if (!service.IsValidVariableDeclarator(
VariableDeclarator
))
84
service.GetVariableDeclaratorSymbolNode(
VariableDeclarator
), cancellationToken);
164
if (syntaxFacts.GetInitializerOfVariableDeclarator(
VariableDeclarator
) != null &&