1 write to WhenTrue
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5120
this.
WhenTrue
= whenTrue;
19 references to WhenTrue
Microsoft.CodeAnalysis.CSharp (19)
Binder\PatternExplainer.cs (2)
61
BoundWhenDecisionDagNode w when distance(w.
WhenTrue
) is var trueDist2 && distance(w.WhenFalse) is var falseDist2 =>
63
(trueDist2 <= falseDist2) ? (1 + trueDist2, w.
WhenTrue
) : (1 + (falseDist2 < nodeCount ? nodeCount : 0) + falseDist2, w.WhenFalse),
BoundTree\BoundDecisionDag.cs (2)
38
builder.Add(w.
WhenTrue
);
131
return p.Update(p.Bindings, p.WhenExpression, replacement[p.
WhenTrue
], (p.WhenFalse != null) ? replacement[p.WhenFalse] : null);
BoundTree\BoundDecisionDagNode.cs (5)
30
return n1.WhenExpression == n2.WhenExpression && n1.
WhenTrue
== n2.
WhenTrue
&& n1.WhenFalse == n2.WhenFalse;
47
return Hash.Combine(RuntimeHelpers.GetHashCode(n.WhenExpression), Hash.Combine(RuntimeHelpers.GetHashCode(n.WhenFalse), RuntimeHelpers.GetHashCode(n.
WhenTrue
)));
101
builder.Append(node.
WhenTrue
!= null
102
? $"? [{node.
WhenTrue
.Id}] "
FlowAnalysis\NullableWalker_Patterns.cs (2)
709
gotoNode(w.
WhenTrue
, this.StateWhenTrue, nodeBelievedReachable);
715
gotoNode(w.
WhenTrue
, this.State, nodeBelievedReachable);
Generated\BoundNodes.xml.Generated.cs (4)
5134
if (bindings != this.Bindings || whenExpression != this.WhenExpression || whenTrue != this.
WhenTrue
|| whenFalse != this.WhenFalse)
10304
this.Visit(node.
WhenTrue
);
11564
BoundDecisionDagNode whenTrue = (BoundDecisionDagNode)this.Visit(node.
WhenTrue
);
16127
new TreeDumperNode("whenTrue", null, new TreeDumperNode[] { Visit(node.
WhenTrue
, null) }),
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
1152
var whenTrue = (BoundLeafDecisionDagNode)whenClause.
WhenTrue
;
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (3)
67
node = w.
WhenTrue
;
140
node = w.
WhenTrue
;
284
Debug.Assert(whenNode.
WhenTrue
is BoundLeafDecisionDagNode d && d.Label == whenTrueLabel);