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