CxCase

Description

sealed class Tinman.Core.Cx.Statements.CxCase

Derived from

CxNode abstract

Represents a case section in a switch statement:

case 1:
case 2:
  a;

default:
  break;

Public / Constructors

CxCase


public constructor CxCase → (2)

value in : CxExpression

See Value.

statements opt : IVector<CxStatement> = null

The switch case statement list or null for an empty list. See Statements.

Creates a new instance of CxCase.

Public / Attributes

Statements


public attribute Statements → (get)

value : IVector<CxStatement>

[not-null]
The switch case statement list.

Returns the switch case statements.

Value


public attribute Value → (get)

value : CxExpression

The switch case value or null iff this is the default case.

Returns the switch case value.