5 writes to _simplifyAllDescendants
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Simplification\CSharpSimplificationService.NodesAndTokensToReduceComputer.cs (5)
40
_simplifyAllDescendants
= false;
66
_simplifyAllDescendants
= _simplifyAllDescendants || node.HasAnnotation(Simplifier.Annotation);
83
_simplifyAllDescendants
= savedSimplifyAllDescendants;
104
_simplifyAllDescendants
= _simplifyAllDescendants || token.HasAnnotation(Simplifier.Annotation);
116
_simplifyAllDescendants
= savedSimplifyAllDescendants;
9 references to _simplifyAllDescendants
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
Simplification\CSharpSimplificationService.NodesAndTokensToReduceComputer.cs (9)
53
if (
_simplifyAllDescendants
)
65
var savedSimplifyAllDescendants =
_simplifyAllDescendants
;
66
_simplifyAllDescendants =
_simplifyAllDescendants
|| node.HasAnnotation(Simplifier.Annotation);
70
if (
_simplifyAllDescendants
|| node.DescendantNodesAndTokens(s_containsAnnotations, descendIntoTrivia: true).Any(s_hasSimplifierAnnotation))
74
_nodesAndTokensToReduce.Add(new NodeOrTokenToReduce(rewrittenNode,
_simplifyAllDescendants
, node));
91
if (
_simplifyAllDescendants
)
103
var savedSimplifyAllDescendants =
_simplifyAllDescendants
;
104
_simplifyAllDescendants =
_simplifyAllDescendants
|| token.HasAnnotation(Simplifier.Annotation);
106
if (
_simplifyAllDescendants
&& !_insideSpeculatedNode && !token.IsKind(SyntaxKind.None))