logo

class

compiler::IfStmt

sys::Obj
  compiler::Node
    compiler::Stmt
      compiler::IfStmt

IfStmt models an if or if/else statement.

Slots

condition

Expr condition

Source

falseBlock

Block falseBlock

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

trueBlock

Block trueBlock

Source

walkChildren

override Void walkChildren(Visitor v, VisitDepth depth)

Source