5 writes to _simplifyAllDescendants
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Simplification\CSharpSimplificationService.NodesAndTokensToReduceComputer.cs (5)
41
_simplifyAllDescendants
= false;
67
_simplifyAllDescendants
= _simplifyAllDescendants || node.HasAnnotation(Simplifier.Annotation);
84
_simplifyAllDescendants
= savedSimplifyAllDescendants;
105
_simplifyAllDescendants
= _simplifyAllDescendants || token.HasAnnotation(Simplifier.Annotation);
117
_simplifyAllDescendants
= savedSimplifyAllDescendants;
9 references to _simplifyAllDescendants
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
Simplification\CSharpSimplificationService.NodesAndTokensToReduceComputer.cs (9)
54
if (
_simplifyAllDescendants
)
66
var savedSimplifyAllDescendants =
_simplifyAllDescendants
;
67
_simplifyAllDescendants =
_simplifyAllDescendants
|| node.HasAnnotation(Simplifier.Annotation);
71
if (
_simplifyAllDescendants
|| node.DescendantNodesAndTokens(s_containsAnnotations, descendIntoTrivia: true).Any(s_hasSimplifierAnnotation))
75
_nodesAndTokensToReduce.Add(new NodeOrTokenToReduce(rewrittenNode,
_simplifyAllDescendants
, node));
92
if (
_simplifyAllDescendants
)
104
var savedSimplifyAllDescendants =
_simplifyAllDescendants
;
105
_simplifyAllDescendants =
_simplifyAllDescendants
|| token.HasAnnotation(Simplifier.Annotation);
107
if (
_simplifyAllDescendants
&& !_insideSpeculatedNode && !token.IsKind(SyntaxKind.None))