2 instantiations of BoundDagExplicitNullTest
Microsoft.CodeAnalysis.CSharp (2)
Binder\DecisionDagBuilder.cs (1)
882
builder.Add(new Tests.One(new
BoundDagExplicitNullTest
(constant.Syntax, input)));
Generated\BoundNodes.xml.Generated.cs (1)
5345
var result = new
BoundDagExplicitNullTest
(this.Syntax, input, this.HasErrors);
37 references to BoundDagExplicitNullTest
Microsoft.CodeAnalysis.CSharp (37)
Binder\DecisionDagBuilder.cs (14)
31
/// four kinds:<see cref="
BoundDagExplicitNullTest
"/> tests a value for null; <see cref="BoundDagNonNullTest"/>
1771
case
BoundDagExplicitNullTest
nullTest:
1874
resultForNullTest(
BoundDagExplicitNullTest
nullTest)
1986
case
BoundDagExplicitNullTest
_:
2031
case
BoundDagExplicitNullTest
_:
2050
case
BoundDagExplicitNullTest
_:
2083
case
BoundDagExplicitNullTest
_:
2108
case
BoundDagExplicitNullTest
_:
2351
return test is
BoundDagExplicitNullTest
&& IsAnyUnionValue(NotTypeEvaluationInput(test.Input), out testUnionInstance);
2420
if (test is not (BoundDagNonNullTest or
BoundDagExplicitNullTest
) &&
2421
other is not (BoundDagNonNullTest or
BoundDagExplicitNullTest
) &&
4015
case
BoundDagExplicitNullTest
:
4089
if (test is
BoundDagExplicitNullTest
)
4117
if (test is not (
BoundDagExplicitNullTest
or BoundDagNonNullTest) &&
Binder\PatternExplainer.cs (8)
68
case BoundTestDecisionDagNode { Test:
BoundDagExplicitNullTest
} t when !nullPaths:
186
bool skipWhenTrue = test.Test is
BoundDagExplicitNullTest
&& !nullPaths;
393
case (test:
BoundDagExplicitNullTest
_, sense: var sense):
417
else if (constraints is [(BoundDagNonNullTest, true) or (
BoundDagExplicitNullTest
, false), (BoundDagTypeTest { Type: var constraintType2 }, var sense2)])
586
(
BoundDagExplicitNullTest
_, false) => true,
609
(
BoundDagExplicitNullTest
_, sense: false) => true,
628
case
BoundDagExplicitNullTest
:
801
(test:
BoundDagExplicitNullTest
_, sense: false);
Binder\SwitchExpressionBinder.cs (1)
132
case
BoundDagExplicitNullTest
t: // checks that the input is null
BoundTree\BoundDagTest.cs (3)
35
case (
BoundDagExplicitNullTest
x,
BoundDagExplicitNullTest
y):
119
case
BoundDagExplicitNullTest
n:
BoundTree\BoundDecisionDag.cs (1)
184
case
BoundDagExplicitNullTest
d:
FlowAnalysis\NullableWalker_Patterns.cs (1)
572
case
BoundDagExplicitNullTest
_:
Generated\BoundNodes.xml.Generated.cs (8)
5341
public new
BoundDagExplicitNullTest
Update(BoundDagTemp input)
5345
var
result = new BoundDagExplicitNullTest(this.Syntax, input, this.HasErrors);
9359
return VisitDagExplicitNullTest((
BoundDagExplicitNullTest
)node, arg);
9701
public virtual R VisitDagExplicitNullTest(
BoundDagExplicitNullTest
node, A arg) => this.DefaultVisit(node, arg);
9942
public virtual BoundNode? VisitDagExplicitNullTest(
BoundDagExplicitNullTest
node) => this.DefaultVisit(node);
10606
public override BoundNode? VisitDagExplicitNullTest(
BoundDagExplicitNullTest
node)
12000
public override BoundNode? VisitDagExplicitNullTest(
BoundDagExplicitNullTest
node)
16698
public override TreeDumperNode VisitDagExplicitNullTest(
BoundDagExplicitNullTest
node, object? arg) => new TreeDumperNode("dagExplicitNullTest", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
379
case
BoundDagExplicitNullTest
d: