1 write to Test
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5086
this.
Test
= test;
30 references to Test
Microsoft.CodeAnalysis.CSharp (30)
Binder\DecisionDagBuilder.cs (1)
789
case BoundTestDecisionDagNode {
Test
: var test }:
Binder\PatternExplainer.cs (5)
57
BoundTestDecisionDagNode {
Test
: BoundDagNonNullTest } t when !nullPaths => (1 + distance(t.WhenTrue), t.WhenTrue),
58
BoundTestDecisionDagNode {
Test
: BoundDagExplicitNullTest } t when !nullPaths => (1 + distance(t.WhenFalse), t.WhenFalse),
136
bool skipWhenTrue = test.
Test
is BoundDagExplicitNullTest && !nullPaths;
137
bool skipWhenFalse = test.
Test
is BoundDagNonNullTest && !nullPaths;
259
BoundDagTest test = t.
Test
;
Binder\SwitchExpressionBinder.cs (1)
116
switch (p.
Test
)
BoundTree\BoundDecisionDag.cs (2)
129
return p.Update(p.
Test
, replacement[p.WhenTrue], replacement[p.WhenFalse]);
161
switch (knownResult(p.
Test
))
BoundTree\BoundDecisionDagNode.cs (4)
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)));
80
builder.Append($"{node.
Test
.GetDebuggerDisplay()} ");
FlowAnalysis\NullableWalker_Patterns.cs (1)
590
var test = p.
Test
;
Generated\BoundNodes.xml.Generated.cs (4)
5100
if (test != this.
Test
|| whenTrue != this.WhenTrue || whenFalse != this.WhenFalse)
10297
this.Visit(node.
Test
);
11557
BoundDagTest test = (BoundDagTest)this.Visit(node.
Test
);
16118
new TreeDumperNode("test", null, new TreeDumperNode[] { Visit(node.
Test
, null) }),
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (8)
447
TryLowerTypeTestAndCast(testNode.
Test
, evaluationNode.Evaluation, out BoundExpression sideEffect, out BoundExpression test)
504
var input = ((BoundTestDecisionDagNode)node).
Test
.Input;
529
var t1 = test1.
Test
;
530
var t2 = test2.
Test
;
570
if (!(node is BoundTestDecisionDagNode testNode && testNode.
Test
.Input.Equals(input)))
576
switch (testNode.
Test
)
593
p.
Test
is BoundDagValueTest vd &&
1226
BoundExpression test = base.LowerTest(testNode.
Test
);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
585
return t.
Test
.Input.IsOriginalInput;
677
Debug.Assert(!testNode.
Test
.Input.IsOriginalInput);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (2)
257
TryLowerTypeTestAndCast(testNode.
Test
, e.Evaluation, out BoundExpression? sideEffect, out BoundExpression? testExpression))
266
LowerOneTest(testNode.
Test
, invertTest);