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