27 references to One
Microsoft.CodeAnalysis.CSharp (27)
Binder\DecisionDagBuilder.cs (22)
380
tests.Add(new Tests.
One
(new BoundDagTypeTest(syntax, iTupleType, input)));
382
tests.Add(new Tests.
One
(valueAsITupleEvaluation));
387
tests.Add(new Tests.
One
(lengthEvaluation));
389
tests.Add(new Tests.
One
(new BoundDagValueTest(syntax, ConstantValue.Create(patternLength), lengthTemp)));
395
tests.Add(new Tests.
One
(indexEvaluation));
487
tests.Add(new Tests.
One
(new BoundDagNonNullTest(syntax, isExplicitTest, input)));
517
tests.Add(new Tests.
One
(new BoundDagTypeTest(syntax, type, input)));
522
tests.Add(new Tests.
One
(evaluation));
536
return new Tests.
One
(new BoundDagExplicitNullTest(constant.Syntax, input));
541
return new Tests.
One
(new BoundDagValueTest(constant.Syntax, constant.ConstantValue, input));
556
tests.Add(new Tests.
One
(new BoundDagValueTest(constant.Syntax, constant.ConstantValue, input)));
580
tests.Add(new Tests.
One
(evaluation));
610
tests.Add(new Tests.
One
(evaluation));
620
tests.Add(new Tests.
One
(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true)));
634
tests.Add(new Tests.
One
(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true)));
676
tests.Add(new Tests.
One
(evaluation));
736
builder.Add(new Tests.
One
(evaluation));
769
tests.Add(new Tests.
One
(new BoundDagRelationalTest(rel.Syntax, rel.Relation, rel.ConstantValue, output, rel.HasErrors)));
1506
relationEffect = 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)));
2285
new
One
(new BoundDagValueTest(t.Syntax, safeAdd(t.Value, offset), lengthTemp));
2289
new
One
(new BoundDagRelationalTest(t.Syntax, t.OperatorKind, safeAdd(t.Value, offset), lengthTemp));
Binder\DecisionDagBuilder_ListPatterns.cs (5)
29
tests.Add(new Tests.
One
(new BoundDagTypeTest(list.Syntax, ErrorType(), input, hasErrors: true)));
43
tests.Add(new Tests.
One
(lengthEvaluation));
45
tests.Add(new Tests.
One
(list.HasSlice
67
tests.Add(new Tests.
One
(sliceEvaluation));
82
tests.Add(new Tests.
One
(indexEvaluation));