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