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