class compiler::Block
sys::Obj compiler::Node compiler::Block
Block is a list of zero or more Stmts
- add
-
Append a statement
- addAll
-
Append a list of statements
- isDefiniteAssign
-
Bool isDefiniteAssign(|Expr->Bool| f)
Return if any of the statements perform definite assignment.
- isEmpty
-
Bool isEmpty()
Return is there are no statements
- isExit
-
Bool isExit()
Does this block always cause us to exit the method (does the last statement return true for Stmt.isExit)
- make
-
new make(Loc loc)
- printOpt
- size
-
Int size()
Return number of statements
- stmts
-
Stmt[] stmts
- walk
-
Void walk(Visitor v, VisitDepth depth)
- walkExpr