logo

class

compiler::Block

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

Block is a list of zero or more Stmts

Slots

add

Void add(Stmt stmt)

Append a statement

Source

addAll

Void addAll(Stmt[] stmts)

Append a list of statements

Source

isEmpty

Bool isEmpty()

Return is there are no statements

Source

isExit

Bool isExit()

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

Source

make

new make(Location location)

Source

print

override Void print(AstWriter out)

Pretty print this node and it's descendants.

Source

printOpt

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

Source

size

Int size()

Return number of statements

Source

stmts

Stmt[] stmts

Source

walk

Void walk(Visitor v, VisitDepth depth)

Source

walkExpr

Void walkExpr(|Expr -> Expr| closure)

Source