35 instantiations of One
Microsoft.CodeAnalysis.CSharp (35)
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));
Binder\DecisionDagBuilder.cs (30)
426
tests.Add(new Tests.
One
(valueEvaluation));
518
tests.Add(new Tests.
One
(lengthEvaluation));
520
tests.Add(new Tests.
One
(new BoundDagValueTest(syntax, ConstantValue.Create(patternLength), lengthTemp)));
526
tests.Add(new Tests.
One
(indexEvaluation));
636
tests.Add(new Tests.
One
(new BoundDagNonNullTest(syntax, isExplicitTest, input)));
763
tests = Tests.AndSequence.Create(new Tests.
One
(hasValueEvaluation), test);
800
tests.Add(new Tests.
One
(deconstructEvaluation));
816
tests.Add(new Tests.
One
(typeEvaluation));
821
tests.Add(new Tests.
One
(new BoundDagTypeTest(syntax, type, typeEvaluationTemp)));
823
tests.Add(new Tests.
One
(typeEvaluation));
855
tests.Add(new Tests.
One
(new BoundDagTypeTest(syntax, type, input)));
860
tests.Add(new Tests.
One
(evaluation));
882
builder.Add(new Tests.
One
(new BoundDagExplicitNullTest(constant.Syntax, input)));
898
tests.Add(new Tests.
One
(new BoundDagValueTest(constant.Syntax, constantValue, input)));
928
return new Tests.
One
(new BoundDagValueTest(syntax, constantValue, input));
952
tests.Add(new Tests.
One
(evaluation));
983
tests.Add(new Tests.
One
(evaluation));
994
tests.Add(new Tests.
One
(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true)));
1068
tests.Add(new Tests.
One
(new BoundDagTypeTest(subpattern.Syntax, ErrorType(), input, hasErrors: true)));
1096
tests.Add(new Tests.
One
(new BoundDagTypeTest(subpattern.Syntax, ErrorType(), input, hasErrors: true)));
1100
tests.Add(new Tests.
One
(evaluation));
1161
builder.Add(new Tests.
One
(evaluation));
1198
tests.Add(new Tests.
One
(new BoundDagRelationalTest(rel.Syntax, rel.Relation, rel.ConstantValue, output, rel.HasErrors)));
3355
assignments.Add(new Tests.
One
(new BoundDagAssignmentEvaluation(useValueFrom.Syntax, b.TempContainingValue, useValueFrom)));
3540
new
One
(new BoundDagValueTest(t.Syntax, safeAdd(t.Value, offset), lengthTemp));
3544
new
One
(new BoundDagRelationalTest(t.Syntax, t.OperatorKind, safeAdd(t.Value, offset), lengthTemp));
3603
tempsUpdatedResult = new
One
(updatedTest);
3857
return AndSequence.Create(new Tests.
One
(newTypeEval), new Tests.
One
(new BoundDagPassThroughEvaluation(typeEval.Syntax, newTemp)));
3913
condition = new Tests.
One
(new BoundDagValueTest(s2.Syntax, ConstantValue.Create(lengthValue), s1LengthTemp));
25 references to One
Microsoft.CodeAnalysis.CSharp (25)
Binder\DecisionDagBuilder.cs (25)
255
case Tests.
One
(BoundDagEvaluation e):
268
case Tests.
One
(BoundDagTest d):
761
Debug.Assert(test is Tests.
One
{ Test: BoundDagValueTest });
806
Debug.Assert(test is Tests.
One
{ Test: var tryGetValueResultTest } && IsUnionTryGetValueTest(tryGetValueResultTest, out _, out _, out _));
3279
Debug.Assert((conditionToUseFinalResult is null) || (tempsUpdatedResult is
One
(BoundDagIndexerEvaluation)));
3510
public override bool Equals(object? obj) => this == obj || obj is
One
other && this.Test.Equals(other.Test);
3599
var
tempsUpdatedResult = this;
3627
tempsUpdatedResult is
One
(BoundDagIndexerEvaluation)));
3658
static Tests removeEvaluation(
One
tests, DecisionDagBuilder builder, DagState state, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagEvaluation e, out Tests? condition)
3695
One
tests,
3707
private static bool IsEquivalentEvaluation(
One
tests, BoundDagEvaluation e1, [NotNullWhen(true)] out BoundDagEvaluation? underlying)
3722
private static Tests RemoveAssignmentEvaluation(
One
tests, BoundDagAssignmentEvaluation e1)
3732
private static Tests RemoveSimpleEvaluationWithResultTemp(
One
tests, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagEvaluation e1)
3766
private static Tests RemoveDeconstructEvaluation(
One
tests, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagDeconstructEvaluation e1)
3790
private static Tests RemoveTypeEvaluation(
One
tests, DecisionDagBuilder dagBuilder, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagTypeEvaluation e1)
3867
private static Tests RemoveIndexerEvaluation(
One
tests, DecisionDagBuilder dagBuilder, DagState state, ref ImmutableDictionary<BoundDagTemp, BoundDagTemp> tempMap, BoundDagIndexerEvaluation s1, out Tests? condition)
4035
/// This is semantically equivalent to an <see cref="OrSequence"/> of <see cref="
One
"/> nodes each containing
4196
Tests.
One
o => new Not(o),
4825
if (RemainingTests[0] is
One
{ Test: { Kind: BoundKind.DagNonNullTest } planA })
4856
case
One
{ Test: { Kind: BoundKind.DagTypeTest } planB1 }:
4863
case
One
{ Test: { Kind: BoundKind.DagValueTest } planB2 }:
4972
case
One
{ Test: BoundDagValueTest firstValueTest } when !firstValueTest.Value.IsBad:
5002
case
One
{ Test: BoundDagValueTest vt } when vt.Input == input && !vt.Value.IsBad:
5019
One
{ Test: BoundDagValueTest vt } => vt.Syntax,
5031
One
{ Test: BoundDagValueTest vt } => factory.Related(BinaryOperatorKind.Equal, vt.Value),