27 instantiations of One
Microsoft.CodeAnalysis.CSharp (27)
Binder\DecisionDagBuilder.cs (22)
380tests.Add(new Tests.One(new BoundDagTypeTest(syntax, iTupleType, input))); 382tests.Add(new Tests.One(valueAsITupleEvaluation)); 387tests.Add(new Tests.One(lengthEvaluation)); 389tests.Add(new Tests.One(new BoundDagValueTest(syntax, ConstantValue.Create(patternLength), lengthTemp))); 395tests.Add(new Tests.One(indexEvaluation)); 487tests.Add(new Tests.One(new BoundDagNonNullTest(syntax, isExplicitTest, input))); 517tests.Add(new Tests.One(new BoundDagTypeTest(syntax, type, input))); 522tests.Add(new Tests.One(evaluation)); 536return new Tests.One(new BoundDagExplicitNullTest(constant.Syntax, input)); 541return new Tests.One(new BoundDagValueTest(constant.Syntax, constant.ConstantValue, input)); 556tests.Add(new Tests.One(new BoundDagValueTest(constant.Syntax, constant.ConstantValue, input))); 580tests.Add(new Tests.One(evaluation)); 610tests.Add(new Tests.One(evaluation)); 620tests.Add(new Tests.One(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true))); 634tests.Add(new Tests.One(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true))); 676tests.Add(new Tests.One(evaluation)); 736builder.Add(new Tests.One(evaluation)); 769tests.Add(new Tests.One(new BoundDagRelationalTest(rel.Syntax, rel.Relation, rel.ConstantValue, output, rel.HasErrors))); 1506relationEffect = new Tests.One(new BoundDagAssignmentEvaluation(syntax, target: other.Input, input: test.Input)); 1546(conditions ??= ArrayBuilder<Tests>.GetInstance()).Add(new Tests.One(new BoundDagValueTest(syntax, ConstantValue.Create(lengthValue), s1LengthTemp))); 2285new One(new BoundDagValueTest(t.Syntax, safeAdd(t.Value, offset), lengthTemp)); 2289new One(new BoundDagRelationalTest(t.Syntax, t.OperatorKind, safeAdd(t.Value, offset), lengthTemp));
Binder\DecisionDagBuilder_ListPatterns.cs (5)
29tests.Add(new Tests.One(new BoundDagTypeTest(list.Syntax, ErrorType(), input, hasErrors: true))); 43tests.Add(new Tests.One(lengthEvaluation)); 45tests.Add(new Tests.One(list.HasSlice 67tests.Add(new Tests.One(sliceEvaluation)); 82tests.Add(new Tests.One(indexEvaluation));
8 references to One
Microsoft.CodeAnalysis.CSharp (8)
Binder\DecisionDagBuilder.cs (8)
245case Tests.One(BoundDagEvaluation e): 258case Tests.One(BoundDagTest d): 2215Debug.Assert(relationEffect is True or One(BoundDagAssignmentEvaluation)); 2255public override bool Equals(object? obj) => this == obj || obj is One other && this.Test.Equals(other.Test); 2332Tests.One o => new Not(o), 2766if (RemainingTests[0] is One { Test: { Kind: BoundKind.DagNonNullTest } planA }) 2773case One { Test: { Kind: BoundKind.DagTypeTest } planB1 }: 2780case One { Test: { Kind: BoundKind.DagValueTest } planB2 }: