1 write to WhenTrue
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5087this.WhenTrue = whenTrue;
37 references to WhenTrue
Microsoft.CodeAnalysis.CSharp (37)
Binder\PatternExplainer.cs (7)
57BoundTestDecisionDagNode { Test: BoundDagNonNullTest } t when !nullPaths => (1 + distance(t.WhenTrue), t.WhenTrue), 59BoundTestDecisionDagNode t when distance(t.WhenTrue) is var trueDist1 && distance(t.WhenFalse) is var falseDist1 => 60(trueDist1 <= falseDist1) ? (1 + trueDist1, t.WhenTrue) : (1 + falseDist1, t.WhenFalse), 141if (!exploreToNode(test.WhenTrue, currentRequiresFalseWhenClause)) 258bool sense = t.WhenTrue == nextNode || (t.WhenFalse != nextNode && t.WhenTrue is BoundWhenDecisionDagNode);
Binder\SwitchExpressionBinder.cs (1)
119builder.Add(p.WhenTrue);
BoundTree\BoundDecisionDag.cs (3)
33builder.Add(p.WhenTrue); 129return p.Update(p.Test, replacement[p.WhenTrue], replacement[p.WhenFalse]); 164return replacement[p.WhenTrue];
BoundTree\BoundDecisionDagNode.cs (5)
28return n1.Test.Equals(n2.Test) && n1.WhenTrue == n2.WhenTrue && n1.WhenFalse == n2.WhenFalse; 45return Hash.Combine(n.Test.GetHashCode(), Hash.Combine(RuntimeHelpers.GetHashCode(n.WhenFalse), RuntimeHelpers.GetHashCode(n.WhenTrue))); 81builder.Append(node.WhenTrue != null 82? $"? [{node.WhenTrue.Id}] "
FlowAnalysis\NullableWalker_Patterns.cs (5)
603gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 618gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 627gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 648gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.StateWhenTrue, nodeBelievedReachable); 656gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable);
Generated\BoundNodes.xml.Generated.cs (4)
5100if (test != this.Test || whenTrue != this.WhenTrue || whenFalse != this.WhenFalse) 10334this.Visit(node.WhenTrue); 11594BoundDecisionDagNode whenTrue = (BoundDecisionDagNode)this.Visit(node.WhenTrue); 16155new TreeDumperNode("whenTrue", null, new TreeDumperNode[] { Visit(node.WhenTrue, null) }),
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (7)
85notePredecessor(p.WhenTrue); 446testNode.WhenTrue is BoundEvaluationDecisionDagNode evaluationNode && 516case BoundTestDecisionDagNode { WhenTrue: BoundTestDecisionDagNode test2 } test1: 581var whenTrue = GatherValueDispatchNodes(testNode.WhenTrue, loweredNodes, input, fac); 590cases.Add((value: value.Value, label: GetDagNodeLabel(testNode.WhenTrue))); 598cases.Add((value: vd.Value, label: GetDagNodeLabel(p.WhenTrue))); 1227GenerateTest(test, testNode.WhenTrue, testNode.WhenFalse, nextNode);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (5)
76if (falseFail == IsFailureNode(t.WhenTrue, whenFalseLabel)) 78node = falseFail ? t.WhenTrue : t.WhenFalse; 256if (testNode.WhenTrue is BoundEvaluationDecisionDagNode e && 265bool invertTest = IsFailureNode(testNode.WhenTrue, whenFalseLabel); 267node = invertTest ? testNode.WhenFalse : testNode.WhenTrue;