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