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