27 references to Cases
System.Core (27)
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
1022Visit(node.Cases, VisitSwitchCase);
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
394public ReadOnlyCollection<SwitchCase> Cases { get { return _node.Cases; } }
Microsoft\Scripting\Ast\ExpressionVisitor.cs (1)
485Visit(node.Cases, VisitSwitchCase),
Microsoft\Scripting\Ast\SwitchExpression.cs (2)
121/// <param name="cases">The <see cref="Cases" /> property of the result.</param> 125if (switchValue == SwitchValue && cases == Cases && defaultBody == DefaultBody) {
Microsoft\Scripting\Compiler\LambdaCompiler.ControlFlow.cs (1)
186foreach (SwitchCase c in @switch.Cases) {
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (20)
186var labels = new Label[node.Cases.Count]; 187var isGoto = new bool[node.Cases.Count]; 188for (int i = 0, n = node.Cases.Count; i < n; i++) { 189DefineSwitchCaseLabel(node.Cases[i], out labels[i], out isGoto[i]); 190foreach (Expression test in node.Cases[i].TestValues) { 215return node.Cases[0].TestValues[0].Type; 329!TypeUtils.AreEquivalent(type, node.Cases[0].TestValues[0].Type)) { 335if (!node.Cases.All(c => c.TestValues.All(t => t is ConstantExpression))) { 344var labels = new Label[node.Cases.Count]; 345var isGoto = new bool[node.Cases.Count]; 349for (int i = 0; i < node.Cases.Count; i++) { 351DefineSwitchCaseLabel(node.Cases[i], out labels[i], out isGoto[i]); 353foreach (ConstantExpression test in node.Cases[i].TestValues) { 435for (int i = 0, n = node.Cases.Count; i < n; i++) { 443EmitExpressionAsType(node.Cases[i].Body, node.Type, flags); 564foreach (SwitchCase c in node.Cases) { 582var cases = new List<SwitchCase>(node.Cases.Count); 586for (int i = 0, n = node.Cases.Count; i < n; i++) { 587foreach (ConstantExpression t in node.Cases[i].TestValues) { 594cases.Add(Expression.SwitchCase(node.Cases[i].Body, Expression.Constant(i)));
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
785ReadOnlyCollection<SwitchCase> cases = node.Cases;