SwitchStatement

extern (C++) final
class SwitchStatement : Statement {
Expression condition;
Statement _body;
bool isFinal;
DefaultStatement sdefault;
TryFinallyStatement tf;
GotoCaseStatements gotoCases;
CaseStatements* cases;
int hasNoDefault;
int hasVars;
VarDeclaration lastVar;
}

Inherited Members

From Statement

scopeCode
Statement scopeCode(Scope* sc, Statement* sentry, Statement* sexception, Statement* sfinally)

If this statement has code that needs to run in a finally clause at the end of the current scope, return that code in the form of a Statement. Output: *sentry code executed upon entry to the scope *sexception code executed upon exit from the scope via exception *sfinally code executed in finally block

flatten
Statements* flatten(Scope* sc)

Flatten out the scope by presenting the statement as an array of statements. Returns NULL if no flattening necessary.

Meta