35 references to 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)
427
tests.Add(new Tests.
One
(valueEvaluation));
519
tests.Add(new Tests.
One
(lengthEvaluation));
521
tests.Add(new Tests.
One
(new BoundDagValueTest(syntax, ConstantValue.Create(patternLength), lengthTemp)));
527
tests.Add(new Tests.
One
(indexEvaluation));
637
tests.Add(new Tests.
One
(new BoundDagNonNullTest(syntax, isExplicitTest, input)));
764
tests = Tests.AndSequence.Create(new Tests.
One
(hasValueEvaluation), test);
801
tests.Add(new Tests.
One
(deconstructEvaluation));
817
tests.Add(new Tests.
One
(typeEvaluation));
822
tests.Add(new Tests.
One
(new BoundDagTypeTest(syntax, type, typeEvaluationTemp)));
824
tests.Add(new Tests.
One
(typeEvaluation));
856
tests.Add(new Tests.
One
(new BoundDagTypeTest(syntax, type, input)));
861
tests.Add(new Tests.
One
(evaluation));
883
builder.Add(new Tests.
One
(new BoundDagExplicitNullTest(constant.Syntax, input)));
899
tests.Add(new Tests.
One
(new BoundDagValueTest(constant.Syntax, constantValue, input)));
929
return new Tests.
One
(new BoundDagValueTest(syntax, constantValue, input));
953
tests.Add(new Tests.
One
(evaluation));
984
tests.Add(new Tests.
One
(evaluation));
995
tests.Add(new Tests.
One
(new BoundDagTypeTest(recursive.Syntax, ErrorType(), input, hasErrors: true)));
1069
tests.Add(new Tests.
One
(new BoundDagTypeTest(subpattern.Syntax, ErrorType(), input, hasErrors: true)));
1097
tests.Add(new Tests.
One
(new BoundDagTypeTest(subpattern.Syntax, ErrorType(), input, hasErrors: true)));
1101
tests.Add(new Tests.
One
(evaluation));
1162
builder.Add(new Tests.
One
(evaluation));
1199
tests.Add(new Tests.
One
(new BoundDagRelationalTest(rel.Syntax, rel.Relation, rel.ConstantValue, output, rel.HasErrors)));
3356
assignments.Add(new Tests.
One
(new BoundDagAssignmentEvaluation(useValueFrom.Syntax, b.TempContainingValue, useValueFrom)));
3541
new
One
(new BoundDagValueTest(t.Syntax, safeAdd(t.Value, offset), lengthTemp));
3545
new
One
(new BoundDagRelationalTest(t.Syntax, t.OperatorKind, safeAdd(t.Value, offset), lengthTemp));
3604
tempsUpdatedResult = new
One
(updatedTest);
3858
return AndSequence.Create(new Tests.
One
(newTypeEval), new Tests.
One
(new BoundDagPassThroughEvaluation(typeEval.Syntax, newTemp)));
3914
condition = new Tests.
One
(new BoundDagValueTest(s2.Syntax, ConstantValue.Create(lengthValue), s1LengthTemp));