logo

class

compiler::LocalDefStmt

sys::Obj
  compiler::Node
    compiler::Stmt
      compiler::LocalDefStmt

LocalDefStmt models a local variable declaration and its optional initialization expression.

Slots

ctype

CType ctype

init

Expr init

isCatchVar

Bool isCatchVar

isExit

override Bool isExit()

make

new make(Location location)

makeCatchVar

new makeCatchVar(Catch c)

name

Str name

print

override Void print(AstWriter out)

printOpt

Void printOpt(AstWriter out, Bool nl := def)

var

MethodVar var

walkChildren

override Void walkChildren(Visitor v, VisitDepth depth)