class compiler::Block

sys::Obj
  compiler::Node
    compiler::Block

Source

Block is a list of zero or more Stmts

add

Void add(Stmt stmt)

Source

Append a statement

addAll

Void addAll(Stmt[] stmts)

Source

Append a list of statements

isDefiniteAssign

Bool isDefiniteAssign(|Expr->Bool| f)

Source

Return if any of the statements perform definite assignment.

isEmpty

Bool isEmpty()

Source

Return is there are no statements

isExit

Bool isExit()

Source

Does this block always cause us to exit the method (does the last statement return true for Stmt.isExit)

make

new make(Loc loc)

Source

print

virtual override Void print(AstWriter out)

Source

printOpt

Void printOpt(AstWriter out, Bool braces := true)

Source

size

Int size()

Source

Return number of statements

stmts

Stmt[] stmts

Source

walk

Void walk(Visitor v, VisitDepth depth)

Source

walkExpr

Void walkExpr(|Expr->Expr| closure)

Source