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