Fan

 

class

compiler::LocalDefStmt

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

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

Slots

ctypeSource

CType? ctype

initSource

Expr? init

isCatchVarSource

Bool isCatchVar

isDefiniteAssignSource

override Bool isDefiniteAssign(|Expr -> Bool| f)

Check for definite assignment where the given function returns true for the LHS of an assignment in all code paths.

isExitSource

override Bool isExit()

Overrides compiler::Stmt.isExit

Doc inherited from compiler::Stmt.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)

makeSource

new make(Location location, CType? ctype := null, Str name := "")

makeCatchVarSource

new makeCatchVar(Catch c)

nameSource

Str name

printSource

override Void print(AstWriter out)

Overrides compiler::Node.print

Doc inherited from compiler::Node.print

Pretty print this node and it's descendants.

printOptSource

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

toStrSource

override Str toStr()

Overrides sys::Obj.toStr

Doc inherited from sys::Obj.toStr

Return a string representation of this object.

varSource

MethodVar? var

walkChildrenSource

override Void walkChildren(Visitor v, VisitDepth depth)