28 instantiations of One
Microsoft.CodeAnalysis.CSharp (28)
Binder\DecisionDagBuilder.cs (23)
379
tests.Add(new Tests.
One
(new BoundDagTypeTest(syntax, iTupleType, input)));
381
tests.Add(new Tests.
One
(valueAsITupleEvaluation));
386
tests.Add(new Tests.
One
(lengthEvaluation));
388
tests.Add(new Tests.
One
(new BoundDagValueTest(syntax, ConstantValue.Create(patternLength), lengthTemp)));
394
tests.Add(new Tests.
One
(indexEvaluation));
486
tests.Add(new Tests.
One
(new BoundDagNonNullTest(syntax, isExplicitTest, input)));
516
tests.Add(new Tests.
One
(new BoundDagTypeTest(syntax, type, input)));
521
tests.Add(new Tests.
One
(evaluation));
535
return new Tests.
One
(new BoundDagExplicitNullTest(constant.Syntax, input));
540
return new Tests.
One
(new BoundDagValueTest(constant.Syntax, constant.ConstantValue, input));
555
tests.Add(new Tests.
One
(new BoundDagValueTest(constant.Syntax, constant.ConstantValue, input)));
579
tests.Add(new Tests.
One
(evaluation));
609
tests.Add(new Tests.
One
(evaluation));
619
tests.Add(new Tests.
One
(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true)));
633
tests.Add(new Tests.
One
(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true)));
683
tests.Add(new Tests.
One
(evaluation));
742
builder.Add(new Tests.
One
(evaluation));
775
tests.Add(new Tests.
One
(new BoundDagRelationalTest(rel.Syntax, rel.Relation, rel.ConstantValue, output, rel.HasErrors)));
2443
assignments.Add(new Tests.
One
(new BoundDagAssignmentEvaluation(useValueFrom.Syntax, b.TempContainingValue, useValueFrom)));
2598
new
One
(new BoundDagValueTest(t.Syntax, safeAdd(t.Value, offset), lengthTemp));
2602
new
One
(new BoundDagRelationalTest(t.Syntax, t.OperatorKind, safeAdd(t.Value, offset), lengthTemp));
2646
tempsUpdatedResult = new
One
(updatedTest);
2873
condition = new Tests.
One
(new BoundDagValueTest(s2.Syntax, ConstantValue.Create(lengthValue), s1LengthTemp));
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));
17 references to One
Microsoft.CodeAnalysis.CSharp (17)
Binder\DecisionDagBuilder.cs (17)
245
case Tests.
One
(BoundDagEvaluation e):
258
case Tests.
One
(BoundDagTest d):
2367
Debug.Assert((conditionToUseFinalResult is null) || (tempsUpdatedResult is
One
(BoundDagIndexerEvaluation)));
2568
public override bool Equals(object? obj) => this == obj || obj is
One
other && this.Test.Equals(other.Test);
2642
var
tempsUpdatedResult = this;
2659
tempsUpdatedResult is
One
(BoundDagIndexerEvaluation)));
2691
public static Tests RemoveEvaluation(
One
tests, DecisionDagBuilder builder, DagState state, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagEvaluation e, out Tests? condition)
2727
private static bool IsEquivalentEvaluation(
One
tests, BoundDagEvaluation e1, [NotNullWhen(true)] out BoundDagEvaluation? underlying)
2742
private static Tests RemoveAssignmentEvaluation(
One
tests, BoundDagAssignmentEvaluation e1)
2752
private static Tests RemoveSimpleEvaluationWithResultTemp(
One
tests, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagEvaluation e1)
2786
private static Tests RemoveDeconstructEvaluation(
One
tests, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagDeconstructEvaluation e1)
2810
private static Tests RemoveTypeEvaluation(
One
tests, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagTypeEvaluation e1)
2827
private static Tests RemoveIndexerEvaluation(
One
tests, DecisionDagBuilder dagBuilder, DagState state, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagIndexerEvaluation s1, out Tests? condition)
3000
Tests.
One
o => new Not(o),
3623
if (RemainingTests[0] is
One
{ Test: { Kind: BoundKind.DagNonNullTest } planA })
3630
case
One
{ Test: { Kind: BoundKind.DagTypeTest } planB1 }:
3637
case
One
{ Test: { Kind: BoundKind.DagValueTest } planB2 }: