25 instantiations of One
Microsoft.CodeAnalysis.CSharp (25)
Binder\DecisionDagBuilder.cs (21)
334
tests.Add(new Tests.
One
(new BoundDagTypeTest(syntax, iTupleType, input)));
336
tests.Add(new Tests.
One
(valueAsITupleEvaluation));
341
tests.Add(new Tests.
One
(lengthEvaluation));
343
tests.Add(new Tests.
One
(new BoundDagValueTest(syntax, ConstantValue.Create(patternLength), lengthTemp)));
349
tests.Add(new Tests.
One
(indexEvaluation));
441
tests.Add(new Tests.
One
(new BoundDagNonNullTest(syntax, isExplicitTest, input)));
471
tests.Add(new Tests.
One
(new BoundDagTypeTest(syntax, type, input)));
476
tests.Add(new Tests.
One
(evaluation));
490
return new Tests.
One
(new BoundDagExplicitNullTest(constant.Syntax, input));
495
return new Tests.
One
(new BoundDagValueTest(constant.Syntax, constant.ConstantValue, input));
510
tests.Add(new Tests.
One
(new BoundDagValueTest(constant.Syntax, constant.ConstantValue, input)));
534
tests.Add(new Tests.
One
(evaluation));
564
tests.Add(new Tests.
One
(evaluation));
574
tests.Add(new Tests.
One
(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true)));
588
tests.Add(new Tests.
One
(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true)));
630
tests.Add(new Tests.
One
(evaluation));
721
tests.Add(new Tests.
One
(new BoundDagRelationalTest(rel.Syntax, rel.Relation, rel.ConstantValue, output, rel.HasErrors)));
1458
relationEffect = new Tests.
One
(new BoundDagAssignmentEvaluation(syntax, target: other.Input, input: test.Input));
1502
(conditions ??= ArrayBuilder<Tests>.GetInstance()).Add(new Tests.
One
(new BoundDagValueTest(syntax, ConstantValue.Create(lengthValue), s1LengthTemp)));
2241
new
One
(new BoundDagValueTest(t.Syntax, safeAdd(t.Value, offset), lengthTemp));
2245
new
One
(new BoundDagRelationalTest(t.Syntax, t.OperatorKind, safeAdd(t.Value, offset), lengthTemp));
Binder\DecisionDagBuilder_ListPatterns.cs (4)
28
tests.Add(new Tests.
One
(new BoundDagTypeTest(list.Syntax, ErrorType(), input, hasErrors: true)));
42
tests.Add(new Tests.
One
(lengthEvaluation));
66
tests.Add(new Tests.
One
(sliceEvaluation));
81
tests.Add(new Tests.
One
(indexEvaluation));
8 references to One
Microsoft.CodeAnalysis.CSharp (8)
Binder\DecisionDagBuilder.cs (8)
245
case Tests.
One
(BoundDagEvaluation e):
256
case Tests.
One
(BoundDagTest d):
2171
Debug.Assert(relationEffect is True or
One
(BoundDagAssignmentEvaluation));
2211
public override bool Equals(object? obj) => this == obj || obj is
One
other && this.Test.Equals(other.Test);
2288
Tests.
One
o => new Not(o),
2431
if (RemainingTests[0] is
One
{ Test: { Kind: BoundKind.DagNonNullTest } planA })
2438
case
One
{ Test: { Kind: BoundKind.DagTypeTest } planB1 }:
2445
case
One
{ Test: { Kind: BoundKind.DagValueTest } planB2 }: