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