logo

class

compiler::ForStmt

sys::Obj
  compiler::Node
    compiler::Stmt
      compiler::ForStmt

ForStmt models a for loop of the format:

for (init; condition; update) block

Slots

block

Block block

Source

condition

Expr condition

Source

init

Stmt init

Source

isExit

override Bool isExit()

Does this statement always cause us to exit the method (or does it cause us to loop forever without a break to the next statement)

Source

make

new make(Location location)

Source

print

override Void print(AstWriter out)

Pretty print this node and it's descendants.

Source

update

Expr update

Source

walkChildren

override Void walkChildren(Visitor v, VisitDepth depth)

Source