32 instantiations of One
Microsoft.CodeAnalysis.CSharp (32)
Binder\DecisionDagBuilder.cs (27)
418
tests.Add(new Tests.
One
(valueEvaluation));
510
tests.Add(new Tests.
One
(lengthEvaluation));
512
tests.Add(new Tests.
One
(new BoundDagValueTest(syntax, ConstantValue.Create(patternLength), lengthTemp)));
518
tests.Add(new Tests.
One
(indexEvaluation));
628
tests.Add(new Tests.
One
(new BoundDagNonNullTest(syntax, isExplicitTest, input)));
761
tests = Tests.AndSequence.Create(new Tests.
One
(hasValueEvaluation), test);
798
tests.Add(new Tests.
One
(deconstructEvaluation));
814
tests.Add(new Tests.
One
(typeEvaluation));
844
tests.Add(new Tests.
One
(new BoundDagTypeTest(syntax, type, input)));
849
tests.Add(new Tests.
One
(evaluation));
871
builder.Add(new Tests.
One
(new BoundDagExplicitNullTest(constant.Syntax, input)));
887
tests.Add(new Tests.
One
(new BoundDagValueTest(constant.Syntax, constantValue, input)));
917
return new Tests.
One
(new BoundDagValueTest(syntax, constantValue, input));
941
tests.Add(new Tests.
One
(evaluation));
972
tests.Add(new Tests.
One
(evaluation));
983
tests.Add(new Tests.
One
(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true)));
1013
tests.Add(new Tests.
One
(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true)));
1066
tests.Add(new Tests.
One
(evaluation));
1128
builder.Add(new Tests.
One
(evaluation));
1165
tests.Add(new Tests.
One
(new BoundDagRelationalTest(rel.Syntax, rel.Relation, rel.ConstantValue, output, rel.HasErrors)));
3298
assignments.Add(new Tests.
One
(new BoundDagAssignmentEvaluation(useValueFrom.Syntax, b.TempContainingValue, useValueFrom)));
3483
new
One
(new BoundDagValueTest(t.Syntax, safeAdd(t.Value, offset), lengthTemp));
3487
new
One
(new BoundDagRelationalTest(t.Syntax, t.OperatorKind, safeAdd(t.Value, offset), lengthTemp));
3546
tempsUpdatedResult = new
One
(updatedTest);
3777
return AndSequence.Create(new Tests.
One
(newTypeEval), new Tests.
One
(new BoundDagPassThroughEvaluation(typeEval.Syntax, newTemp)));
3833
condition = new Tests.
One
(new BoundDagValueTest(s2.Syntax, ConstantValue.Create(lengthValue), s1LengthTemp));
Binder\DecisionDagBuilder_ListPatterns.cs (5)
32
tests.Add(new Tests.
One
(new BoundDagTypeTest(list.Syntax, ErrorType(), input, hasErrors: true)));
47
tests.Add(new Tests.
One
(lengthEvaluation));
49
tests.Add(new Tests.
One
(list.HasSlice
71
tests.Add(new Tests.
One
(sliceEvaluation));
86
tests.Add(new Tests.
One
(indexEvaluation));
19 references to One
Microsoft.CodeAnalysis.CSharp (19)
Binder\DecisionDagBuilder.cs (19)
253
case Tests.
One
(BoundDagEvaluation e):
266
case Tests.
One
(BoundDagTest d):
759
Debug.Assert(test is Tests.
One
{ Test: BoundDagValueTest });
804
Debug.Assert(test is Tests.
One
{ Test: var tryGetValueResultTest } && IsUnionTryGetValueTest(tryGetValueResultTest, out _, out _, out _));
3222
Debug.Assert((conditionToUseFinalResult is null) || (tempsUpdatedResult is
One
(BoundDagIndexerEvaluation)));
3453
public override bool Equals(object? obj) => this == obj || obj is
One
other && this.Test.Equals(other.Test);
3542
var
tempsUpdatedResult = this;
3559
tempsUpdatedResult is
One
(BoundDagIndexerEvaluation)));
3591
public static Tests RemoveEvaluation(
One
tests, DecisionDagBuilder builder, DagState state, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagEvaluation e, out Tests? condition)
3627
private static bool IsEquivalentEvaluation(
One
tests, BoundDagEvaluation e1, [NotNullWhen(true)] out BoundDagEvaluation? underlying)
3642
private static Tests RemoveAssignmentEvaluation(
One
tests, BoundDagAssignmentEvaluation e1)
3652
private static Tests RemoveSimpleEvaluationWithResultTemp(
One
tests, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagEvaluation e1)
3686
private static Tests RemoveDeconstructEvaluation(
One
tests, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagDeconstructEvaluation e1)
3710
private static Tests RemoveTypeEvaluation(
One
tests, DecisionDagBuilder dagBuilder, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagTypeEvaluation e1)
3787
private static Tests RemoveIndexerEvaluation(
One
tests, DecisionDagBuilder dagBuilder, DagState state, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagIndexerEvaluation s1, out Tests? condition)
3965
Tests.
One
o => new Not(o),
4588
if (RemainingTests[0] is
One
{ Test: { Kind: BoundKind.DagNonNullTest } planA })
4619
case
One
{ Test: { Kind: BoundKind.DagTypeTest } planB1 }:
4626
case
One
{ Test: { Kind: BoundKind.DagValueTest } planB2 }: