1 write to _localDeclarationStatement
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
134_localDeclarationStatement = localDeclarationStatement;
9 references to _localDeclarationStatement
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (9)
164foreach (var variable in _localDeclarationStatement.Declaration.Variables) 198var leadingTrivia = _localDeclarationStatement.Declaration.Type.GetLeadingTrivia() 199.Concat(_localDeclarationStatement.Declaration.Type.GetTrailingTrivia()); 205var trailingTrivia = _localDeclarationStatement.SemicolonToken.GetAllTrivia(); 210if (_localDeclarationStatement.Parent is BlockSyntax or SwitchSectionSyntax) 214_editor.InsertAfter(_localDeclarationStatement, _statementsBuilder.Skip(1)); 217_editor.ReplaceNode(_localDeclarationStatement, _statementsBuilder[0]); 221_editor.ReplaceNode(_localDeclarationStatement, Block(_statementsBuilder)); 235VariableDeclaration(_localDeclarationStatement.Declaration.Type, _currentNonDiscardVariables))