1 write to SwitchValue
System.Linq.Expressions (1)
System\Linq\Expressions\SwitchExpression.cs (1)
21SwitchValue = switchValue;
24 references to SwitchValue
System.Linq.Expressions (24)
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (8)
168EmitExpressionAsVoid(node.SwitchValue); 202ParameterExpression switchValue = Expression.Parameter(node.SwitchValue.Type, "switchValue"); 207EmitExpression(node.SwitchValue); 286Type = Node.SwitchValue.Type; 373Type type = node.SwitchValue.Type; 427LocalBuilder value = GetLocal(node.SwitchValue.Type); 428EmitExpression(node.SwitchValue); 734Expression.Assign(switchValue, node.SwitchValue),
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
882Result switchValue = RewriteExpressionFreeTemps(node.SwitchValue, stack);
System\Linq\Expressions\DebugViewWriter.cs (1)
1051Visit(node.SwitchValue);
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
431public Expression SwitchValue => _node.SwitchValue;
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
725Visit(node.SwitchValue);
System\Linq\Expressions\ExpressionVisitor.cs (1)
487Visit(node.SwitchValue),
System\Linq\Expressions\Interpreter\LightCompiler.cs (6)
1537CompileAsVoid(node.SwitchValue); 1553TypeCode switchType = node.SwitchValue.Type.GetTypeCode(); 1599LocalDefinition temp = _locals.DefineLocal(Expression.Parameter(node.SwitchValue.Type), _instructions.Count); 1600Compile(node.SwitchValue); 1633Compile(node.SwitchValue); 1675Compile(node.SwitchValue);
System\Linq\Expressions\SwitchCase.cs (1)
24/// Gets the values of this case. This case is selected for execution when the <see cref="SwitchExpression.SwitchValue"/> matches any of these values.
System\Linq\Expressions\SwitchExpression.cs (4)
72if (SwitchValue.Type.IsNullableType()) 75!TypeUtils.AreEquivalent(SwitchValue.Type, Comparison.GetParametersCached()[0].ParameterType.GetNonRefType()); 86/// <param name="switchValue">The <see cref="SwitchValue"/> property of the result.</param> 92if (switchValue == SwitchValue && defaultBody == DefaultBody && cases != null)