7 instantiations of BoundDagTypeTest
Microsoft.CodeAnalysis.CSharp (7)
Binder\DecisionDagBuilder_ListPatterns.cs (1)
32
tests.Add(new Tests.One(new
BoundDagTypeTest
(list.Syntax, ErrorType(), input, hasErrors: true)));
Binder\DecisionDagBuilder.cs (5)
821
tests.Add(new Tests.One(new
BoundDagTypeTest
(syntax, type, typeEvaluationTemp)));
855
tests.Add(new Tests.One(new
BoundDagTypeTest
(syntax, type, input)));
994
tests.Add(new Tests.One(new
BoundDagTypeTest
(recursive.Syntax, ErrorType(), input, hasErrors: true)));
1068
tests.Add(new Tests.One(new
BoundDagTypeTest
(subpattern.Syntax, ErrorType(), input, hasErrors: true)));
1096
tests.Add(new Tests.One(new
BoundDagTypeTest
(subpattern.Syntax, ErrorType(), input, hasErrors: true)));
Generated\BoundNodes.xml.Generated.cs (1)
5291
var result = new
BoundDagTypeTest
(this.Syntax, type, input, this.HasErrors);
35 references to BoundDagTypeTest
Microsoft.CodeAnalysis.CSharp (35)
Binder\DecisionDagBuilder.cs (13)
32
/// tests that a value is not null; <see cref="
BoundDagTypeTest
"/> checks if the value is of a given type;
1775
case
BoundDagTypeTest
typeTest:
1827
resultForTypeTest(
BoundDagTypeTest
typeTest)
2001
case
BoundDagTypeTest
t2 when !_forLowering:
2019
case
BoundDagTypeTest
t1:
2028
case
BoundDagTypeTest
t2:
2094
case
BoundDagTypeTest
t2:
2362
if (test is
BoundDagTypeTest
typeTest && IsAnyUnionValue(NotTypeEvaluationInput(test.Input), out testUnionInstance))
2422
(test is not
BoundDagTypeTest
|| other is not
BoundDagTypeTest
) &&
2926
case
BoundDagTypeTest
b:
4013
case
BoundDagTypeTest
:
4105
Debug.Assert(test is
BoundDagTypeTest
, "New type of non-evaluation test added, please update filter for this");
Binder\PatternExplainer.cs (6)
327
if (test is
BoundDagTypeTest
&& sense == false && ValueSetFactory.TypeUnionValueSetFactoryForInput(binder.Compilation, test.Input) is null)
395
case (test:
BoundDagTypeTest
{ Type: var testedType }, sense: var sense):
412
if (constraints is [(
BoundDagTypeTest
{ Type: var constraintType1 }, true)])
417
else if (constraints is [(BoundDagNonNullTest, true) or (BoundDagExplicitNullTest, false), (
BoundDagTypeTest
{ Type: var constraintType2 }, var sense2)])
608
(
BoundDagTypeTest
_, _) => true,
625
case
BoundDagTypeTest
typeTest:
BoundTree\BoundDagTest.cs (4)
31
case (
BoundDagTypeTest
x,
BoundDagTypeTest
y):
112
case
BoundDagTypeTest
b:
164
public new
BoundDagTypeTest
Update(BoundDagTemp input)
BoundTree\BoundDecisionDag.cs (1)
190
case
BoundDagTypeTest
d:
FlowAnalysis\NullableWalker_Patterns.cs (1)
549
case
BoundDagTypeTest
:
Generated\BoundNodes.xml.Generated.cs (8)
5287
public
BoundDagTypeTest
Update(TypeSymbol type, BoundDagTemp input)
5291
var
result = new BoundDagTypeTest(this.Syntax, type, input, this.HasErrors);
9355
return VisitDagTypeTest((
BoundDagTypeTest
)node, arg);
9699
public virtual R VisitDagTypeTest(
BoundDagTypeTest
node, A arg) => this.DefaultVisit(node, arg);
9940
public virtual BoundNode? VisitDagTypeTest(
BoundDagTypeTest
node) => this.DefaultVisit(node);
10596
public override BoundNode? VisitDagTypeTest(
BoundDagTypeTest
node)
11989
public override BoundNode? VisitDagTypeTest(
BoundDagTypeTest
node)
16684
public override TreeDumperNode VisitDagTypeTest(
BoundDagTypeTest
node, object? arg) => new TreeDumperNode("dagTypeTest", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
375
case
BoundDagTypeTest
d:
502
if (test is
BoundDagTypeTest
typeDecision &&