2 instantiations of SwitchCase
System.Core (2)
Microsoft\Scripting\Ast\SwitchCase.cs (1)
104
return new
SwitchCase
(body, values);
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
815
@case = new
SwitchCase
(body.Node, testValues);
40 references to SwitchCase
System.Core (40)
Microsoft\Scripting\Ast\DebugViewWriter.cs (2)
1004
protected override
SwitchCase
VisitSwitchCase(
SwitchCase
node) {
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (3)
376
private readonly
SwitchCase
_node;
378
public SwitchCaseProxy(
SwitchCase
node) {
394
public ReadOnlyCollection<
SwitchCase
> Cases { get { return _node.Cases; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (3)
132
internal static string SwitchCaseToString(
SwitchCase
node) {
732
protected override
SwitchCase
VisitSwitchCase(
SwitchCase
node) {
Microsoft\Scripting\Ast\ExpressionVisitor.cs (3)
465
/// Visits the children of the <see cref="
SwitchCase
" />.
470
protected virtual
SwitchCase
VisitSwitchCase(
SwitchCase
node) {
Microsoft\Scripting\Ast\SwitchCase.cs (3)
72
public
SwitchCase
Update(IEnumerable<Expression> testValues, Expression body) {
87
public static
SwitchCase
SwitchCase(Expression body, params Expression[] testValues) {
97
public static
SwitchCase
SwitchCase(Expression body, IEnumerable<Expression> testValues) {
Microsoft\Scripting\Ast\SwitchExpression.cs (18)
33
/// Represents a control expression that handles multiple selections by passing control to a <see cref="
SwitchCase
"/>.
41
private readonly ReadOnlyCollection<
SwitchCase
> _cases;
45
internal SwitchExpression(Type type, Expression switchValue, Expression defaultBody, MethodInfo comparison, ReadOnlyCollection<
SwitchCase
> cases) {
78
/// Gets the collection of <see cref="
SwitchCase
"/> objects for the switch.
80
public ReadOnlyCollection<
SwitchCase
> Cases {
124
public SwitchExpression Update(Expression switchValue, IEnumerable<
SwitchCase
> cases, Expression defaultBody) {
139
public static SwitchExpression Switch(Expression switchValue, params
SwitchCase
[] cases) {
140
return Switch(switchValue, null, null, (IEnumerable<
SwitchCase
>)cases);
150
public static SwitchExpression Switch(Expression switchValue, Expression defaultBody, params
SwitchCase
[] cases) {
151
return Switch(switchValue, defaultBody, null, (IEnumerable<
SwitchCase
>)cases);
162
public static SwitchExpression Switch(Expression switchValue, Expression defaultBody, MethodInfo comparison, params
SwitchCase
[] cases) {
163
return Switch(switchValue, defaultBody, comparison, (IEnumerable<
SwitchCase
>)cases);
175
public static SwitchExpression Switch(Type type, Expression switchValue, Expression defaultBody, MethodInfo comparison, params
SwitchCase
[] cases) {
176
return Switch(type, switchValue, defaultBody, comparison, (IEnumerable<
SwitchCase
>)cases);
187
public static SwitchExpression Switch(Expression switchValue, Expression defaultBody, MethodInfo comparison, IEnumerable<
SwitchCase
> cases) {
200
public static SwitchExpression Switch(Type type, Expression switchValue, Expression defaultBody, MethodInfo comparison, IEnumerable<
SwitchCase
> cases) {
229
foreach (
var
c in caseList) {
251
foreach (
var
c in caseList) {
Microsoft\Scripting\Compiler\LambdaCompiler.ControlFlow.cs (1)
186
foreach (
SwitchCase
c in @switch.Cases) {
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (3)
408
private void DefineSwitchCaseLabel(
SwitchCase
@case, out Label label, out bool isGoto) {
564
foreach (
SwitchCase
c in node.Cases) {
582
var cases = new List<
SwitchCase
>(node.Cases.Count);
Microsoft\Scripting\Compiler\StackSpiller.cs (4)
785
ReadOnlyCollection<
SwitchCase
> cases = node.Cases;
786
SwitchCase
[] clone = null;
788
SwitchCase
@case = cases[i];
834
cases = new ReadOnlyCollection<
SwitchCase
>(clone);