1 write to TestValues
System.Linq.Expressions (1)
System\Linq\Expressions\SwitchCase.cs (1)
20TestValues = testValues;
23 references to TestValues
System.Linq.Expressions (23)
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (7)
216foreach (Expression test in node.Cases[i].TestValues) 244return node.Cases[0].TestValues[0].Type; 375!TypeUtils.AreEquivalent(type, node.Cases[0].TestValues[0].Type)) 382if (!node.Cases.All(c => c.TestValues.All(t => t is ConstantExpression))) 401foreach (ConstantExpression test in node.Cases[i].TestValues) 647foreach (Expression t in c.TestValues) 673foreach (ConstantExpression t in node.Cases[i].TestValues)
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
892ReadOnlyCollection<Expression> testValues = @case.TestValues;
System\Linq\Expressions\DebugViewWriter.cs (1)
1034foreach (Expression test in node.TestValues)
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
412public ReadOnlyCollection<Expression> TestValues => _node.TestValues;
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
716VisitExpressions('(', node.TestValues, ')');
System\Linq\Expressions\ExpressionVisitor.cs (1)
473return node.Update(Visit(node.TestValues), Visit(node.Body));
System\Linq\Expressions\Interpreter\LightCompiler.cs (4)
1531if (node.Cases.All(c => c.TestValues.All(t => t is ConstantExpression))) 1607foreach (Expression val in @case.TestValues) 1653foreach (ConstantExpression testValue in switchCase.TestValues) 1697foreach (ConstantExpression testValue in switchCase.TestValues)
System\Linq\Expressions\SwitchCase.cs (2)
47/// <param name="testValues">The <see cref="TestValues"/> property of the result.</param> 54if (ExpressionUtils.SameElements(ref testValues!, TestValues))
System\Linq\Expressions\SwitchExpression.cs (5)
223for (int i = 0, n = c.TestValues.Count; i < n; i++) 227Type rightOperandType = c.TestValues[i].Type; 253Expression firstTestValue = caseList[0].TestValues[0]; 259for (int i = 0, n = c.TestValues.Count; i < n; i++) 261if (!TypeUtils.AreEquivalent(firstTestValue.Type, c.TestValues[i].Type))