2 writes to _currentNonDiscardVariables
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (2)
169
_currentNonDiscardVariables
= _currentNonDiscardVariables.Add(variable);
238
_currentNonDiscardVariables
= [];
3 references to _currentNonDiscardVariables
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (3)
169
_currentNonDiscardVariables =
_currentNonDiscardVariables
.Add(variable);
232
if (
_currentNonDiscardVariables
.Count > 0)
235
VariableDeclaration(_localDeclarationStatement.Declaration.Type,
_currentNonDiscardVariables
))