7 instantiations of BoundDagTypeTest
Microsoft.CodeAnalysis.CSharp (7)
Binder\DecisionDagBuilder_ListPatterns.cs (1)
32tests.Add(new Tests.One(new BoundDagTypeTest(list.Syntax, ErrorType(), input, hasErrors: true)));
Binder\DecisionDagBuilder.cs (5)
822tests.Add(new Tests.One(new BoundDagTypeTest(syntax, type, typeEvaluationTemp))); 856tests.Add(new Tests.One(new BoundDagTypeTest(syntax, type, input))); 995tests.Add(new Tests.One(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true))); 1069tests.Add(new Tests.One(new BoundDagTypeTest(subpattern.Syntax, ErrorType(), input, hasErrors: true))); 1097tests.Add(new Tests.One(new BoundDagTypeTest(subpattern.Syntax, ErrorType(), input, hasErrors: true)));
Generated\BoundNodes.xml.Generated.cs (1)
5293var result = new BoundDagTypeTest(this.Syntax, type, input, this.HasErrors);
33 references to BoundDagTypeTest
Microsoft.CodeAnalysis.CSharp (33)
Binder\DecisionDagBuilder.cs (12)
33/// tests that a value is not null; <see cref="BoundDagTypeTest"/> checks if the value is of a given type; 1776case BoundDagTypeTest typeTest: 1828resultForTypeTest(BoundDagTypeTest typeTest) 2002case BoundDagTypeTest t2 when !_forLowering: 2020case BoundDagTypeTest t1: 2029case BoundDagTypeTest t2: 2095case BoundDagTypeTest t2: 2363if (test is BoundDagTypeTest typeTest && IsAnyUnionValue(NotTypeEvaluationInput(test.Input), out testUnionInstance)) 2423(test is not BoundDagTypeTest || other is not BoundDagTypeTest) && 4014case BoundDagTypeTest: 4106Debug.Assert(test is BoundDagTypeTest, "New type of non-evaluation test added, please update filter for this");
Binder\PatternExplainer.cs (6)
327if (test is BoundDagTypeTest && sense == false && ValueSetFactory.TypeUnionValueSetFactoryForInput(binder.Compilation, test.Input) is null) 395case (test: BoundDagTypeTest { Type: var testedType }, sense: var sense): 412if (constraints is [(BoundDagTypeTest { Type: var constraintType1 }, true)]) 417else if (constraints is [(BoundDagNonNullTest, true) or (BoundDagExplicitNullTest, false), (BoundDagTypeTest { Type: var constraintType2 }, var sense2)]) 608(BoundDagTypeTest _, _) => true, 625case BoundDagTypeTest typeTest:
BoundTree\BoundDagTest.cs (3)
31case (BoundDagTypeTest x, BoundDagTypeTest y): 164public new BoundDagTypeTest Update(BoundDagTemp input)
BoundTree\BoundDecisionDag.cs (1)
190case BoundDagTypeTest d:
FlowAnalysis\NullableWalker_Patterns.cs (1)
549case BoundDagTypeTest:
Generated\BoundNodes.xml.Generated.cs (8)
5289public BoundDagTypeTest Update(TypeSymbol type, BoundDagTemp input) 5293var result = new BoundDagTypeTest(this.Syntax, type, input, this.HasErrors); 9353return VisitDagTypeTest((BoundDagTypeTest)node, arg); 9697public virtual R VisitDagTypeTest(BoundDagTypeTest node, A arg) => this.DefaultVisit(node, arg); 9938public virtual BoundNode? VisitDagTypeTest(BoundDagTypeTest node) => this.DefaultVisit(node); 10594public override BoundNode? VisitDagTypeTest(BoundDagTypeTest node) 11985public override BoundNode? VisitDagTypeTest(BoundDagTypeTest node) 16677public override TreeDumperNode VisitDagTypeTest(BoundDagTypeTest node, object? arg) => new TreeDumperNode("dagTypeTest", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
375case BoundDagTypeTest d: 502if (test is BoundDagTypeTest typeDecision &&