CompoundStatement

extern (C++)
class CompoundStatement : Statement {
Statements* statements;
}

Constructors

this
this(Loc loc, Statements* s)

Construct a CompoundStatement using an already existing array of Statements

this
this(Loc loc, Statement[] sts...)

Construct a CompoundStatement from an array of Statements

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