2 instantiations of BoundDagExplicitNullTest
Microsoft.CodeAnalysis.CSharp (2)
Binder\DecisionDagBuilder.cs (1)
871
builder.Add(new Tests.One(new
BoundDagExplicitNullTest
(constant.Syntax, input)));
Generated\BoundNodes.xml.Generated.cs (1)
5364
var result = new
BoundDagExplicitNullTest
(this.Syntax, input, this.HasErrors);
35 references to BoundDagExplicitNullTest
Microsoft.CodeAnalysis.CSharp (35)
Binder\DecisionDagBuilder.cs (12)
31
/// four kinds:<see cref="
BoundDagExplicitNullTest
"/> tests a value for null; <see cref="BoundDagNonNullTest"/>
1738
case
BoundDagExplicitNullTest
nullTest:
1841
resultForNullTest(
BoundDagExplicitNullTest
nullTest)
1953
case
BoundDagExplicitNullTest
_:
1986
case
BoundDagExplicitNullTest
_:
2005
case
BoundDagExplicitNullTest
_:
2038
case
BoundDagExplicitNullTest
_:
2054
case
BoundDagExplicitNullTest
_:
2297
return test is
BoundDagExplicitNullTest
&& IsAnyUnionValue(NotTypeEvaluationInput(test.Input), out testUnionInstance);
2365
if (test is not (BoundDagNonNullTest or
BoundDagExplicitNullTest
) &&
2366
other is not (BoundDagNonNullTest or
BoundDagExplicitNullTest
) &&
3935
case
BoundDagExplicitNullTest
:
Binder\PatternExplainer.cs (8)
58
BoundTestDecisionDagNode { Test:
BoundDagExplicitNullTest
} t when !nullPaths => (1 + distance(t.WhenFalse), t.WhenFalse),
164
bool skipWhenTrue = test.Test is
BoundDagExplicitNullTest
&& !nullPaths;
366
case (test:
BoundDagExplicitNullTest
_, sense: var sense):
390
else if (constraints is [(BoundDagNonNullTest, true) or (
BoundDagExplicitNullTest
, false), (BoundDagTypeTest { Type: var constraintType2 }, var sense2)])
559
(
BoundDagExplicitNullTest
_, false) => true,
582
(
BoundDagExplicitNullTest
_, sense: false) => true,
601
case
BoundDagExplicitNullTest
:
768
(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)
568
case
BoundDagExplicitNullTest
_:
Generated\BoundNodes.xml.Generated.cs (8)
5360
public new
BoundDagExplicitNullTest
Update(BoundDagTemp input)
5364
var
result = new BoundDagExplicitNullTest(this.Syntax, input, this.HasErrors);
9376
return VisitDagExplicitNullTest((
BoundDagExplicitNullTest
)node, arg);
9718
public virtual R VisitDagExplicitNullTest(
BoundDagExplicitNullTest
node, A arg) => this.DefaultVisit(node, arg);
9959
public virtual BoundNode? VisitDagExplicitNullTest(
BoundDagExplicitNullTest
node) => this.DefaultVisit(node);
10611
public override BoundNode? VisitDagExplicitNullTest(
BoundDagExplicitNullTest
node)
12000
public override BoundNode? VisitDagExplicitNullTest(
BoundDagExplicitNullTest
node)
16686
public override TreeDumperNode VisitDagExplicitNullTest(
BoundDagExplicitNullTest
node, object? arg) => new TreeDumperNode("dagExplicitNullTest", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
379
case
BoundDagExplicitNullTest
d: