26 instantiations of One
Microsoft.CodeAnalysis.CSharp (26)
Binder\DecisionDagBuilder.cs (21)
331tests.Add(new Tests.One(new BoundDagTypeTest(syntax, iTupleType, input))); 333tests.Add(new Tests.One(valueAsITupleEvaluation)); 338tests.Add(new Tests.One(lengthEvaluation)); 340tests.Add(new Tests.One(new BoundDagValueTest(syntax, ConstantValue.Create(patternLength), lengthTemp))); 346tests.Add(new Tests.One(indexEvaluation)); 438tests.Add(new Tests.One(new BoundDagNonNullTest(syntax, isExplicitTest, input))); 468tests.Add(new Tests.One(new BoundDagTypeTest(syntax, type, input))); 473tests.Add(new Tests.One(evaluation)); 487return new Tests.One(new BoundDagExplicitNullTest(constant.Syntax, input)); 492return new Tests.One(new BoundDagValueTest(constant.Syntax, constant.ConstantValue, input)); 507tests.Add(new Tests.One(new BoundDagValueTest(constant.Syntax, constant.ConstantValue, input))); 531tests.Add(new Tests.One(evaluation)); 561tests.Add(new Tests.One(evaluation)); 571tests.Add(new Tests.One(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true))); 585tests.Add(new Tests.One(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true))); 627tests.Add(new Tests.One(evaluation)); 691tests.Add(new Tests.One(new BoundDagRelationalTest(rel.Syntax, rel.Relation, rel.ConstantValue, output, rel.HasErrors))); 1409relationEffect = new Tests.One(new BoundDagAssignmentEvaluation(syntax, target: other.Input, input: test.Input)); 1453(conditions ??= ArrayBuilder<Tests>.GetInstance()).Add(new Tests.One(new BoundDagValueTest(syntax, ConstantValue.Create(lengthValue), s1LengthTemp))); 2087new One(new BoundDagValueTest(t.Syntax, safeAdd(t.Value, offset), lengthTemp)); 2091new One(new BoundDagRelationalTest(t.Syntax, t.OperatorKind, safeAdd(t.Value, offset), lengthTemp));
Binder\DecisionDagBuilder_ListPatterns.cs (5)
28tests.Add(new Tests.One(new BoundDagTypeTest(list.Syntax, ErrorType(), input, hasErrors: true))); 42tests.Add(new Tests.One(lengthEvaluation)); 44tests.Add(new Tests.One(list.HasSlice 66tests.Add(new Tests.One(sliceEvaluation)); 81tests.Add(new Tests.One(indexEvaluation));
8 references to One
Microsoft.CodeAnalysis.CSharp (8)
Binder\DecisionDagBuilder.cs (8)
242case Tests.One(BoundDagEvaluation e): 253case Tests.One(BoundDagTest d): 2017Debug.Assert(relationEffect is True or One(BoundDagAssignmentEvaluation)); 2057public override bool Equals(object? obj) => this == obj || obj is One other && this.Test.Equals(other.Test); 2134Tests.One o => new Not(o), 2277if (RemainingTests[0] is One { Test: { Kind: BoundKind.DagNonNullTest } planA }) 2284case One { Test: { Kind: BoundKind.DagTypeTest } planB1 }: 2291case One { Test: { Kind: BoundKind.DagValueTest } planB2 }: