3 instantiations of BoundDagNonNullTest
Microsoft.CodeAnalysis.CSharp (3)
Binder\DecisionDagBuilder.cs (2)
441
tests.Add(new Tests.One(new
BoundDagNonNullTest
(syntax, isExplicitTest, input)));
958
state.SelectedTest = new
BoundDagNonNullTest
(t.Syntax, isExplicitTest: true, t.Input, t.HasErrors);
Generated\BoundNodes.xml.Generated.cs (1)
5276
var result = new
BoundDagNonNullTest
(this.Syntax, isExplicitTest, input, this.HasErrors);
32 references to BoundDagNonNullTest
Microsoft.CodeAnalysis.CSharp (32)
Binder\DecisionDagBuilder.cs (10)
32
/// four kinds:<see cref="BoundDagExplicitNullTest"/> tests a value for null; <see cref="
BoundDagNonNullTest
"/>
955
if (foundExplicitNullTest && d is
BoundDagNonNullTest
{ IsExplicitTest: false } t)
1137
case
BoundDagNonNullTest
_:
1261
case
BoundDagNonNullTest
_:
1275
case
BoundDagNonNullTest
n2:
1292
case
BoundDagNonNullTest
n2:
1337
case
BoundDagNonNullTest
n2:
1378
case
BoundDagNonNullTest
n2:
1428
if (test is not (
BoundDagNonNullTest
or BoundDagExplicitNullTest) &&
1429
other is not (
BoundDagNonNullTest
or BoundDagExplicitNullTest) &&
Binder\PatternExplainer.cs (6)
57
BoundTestDecisionDagNode { Test:
BoundDagNonNullTest
} t when !nullPaths => (1 + distance(t.WhenTrue), t.WhenTrue),
137
bool skipWhenFalse = test.Test is
BoundDagNonNullTest
&& !nullPaths;
323
case (test:
BoundDagNonNullTest
_, sense: var sense):
355
constraints[0] is (
BoundDagNonNullTest
_, true) &&
504
(
BoundDagNonNullTest
_, true) => true,
636
(test:
BoundDagNonNullTest
_, sense: true) or
Binder\SwitchExpressionBinder.cs (1)
118
case
BoundDagNonNullTest
t: // checks that the input is not null
BoundTree\BoundDagTest.cs (3)
31
case (
BoundDagNonNullTest
x,
BoundDagNonNullTest
y):
87
case
BoundDagNonNullTest
nn:
BoundTree\BoundDecisionDag.cs (1)
186
case
BoundDagNonNullTest
d:
FlowAnalysis\NullableWalker_Patterns.cs (1)
606
case
BoundDagNonNullTest
t:
Generated\BoundNodes.xml.Generated.cs (8)
5272
public
BoundDagNonNullTest
Update(bool isExplicitTest, BoundDagTemp input)
5276
var
result = new BoundDagNonNullTest(this.Syntax, isExplicitTest, input, this.HasErrors);
9107
return VisitDagNonNullTest((
BoundDagNonNullTest
)node, arg);
9441
public virtual R VisitDagNonNullTest(
BoundDagNonNullTest
node, A arg) => this.DefaultVisit(node, arg);
9677
public virtual BoundNode? VisitDagNonNullTest(
BoundDagNonNullTest
node) => this.DefaultVisit(node);
10319
public override BoundNode? VisitDagNonNullTest(
BoundDagNonNullTest
node)
11581
public override BoundNode? VisitDagNonNullTest(
BoundDagNonNullTest
node)
16153
public override TreeDumperNode VisitDagNonNullTest(
BoundDagNonNullTest
node, object? arg) => new TreeDumperNode("dagNonNullTest", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
343
case
BoundDagNonNullTest
d:
482
if (test is
BoundDagNonNullTest
nonNullTest &&