class compiler::LocalVarExpr

sys::Obj
  compiler::Node
    compiler::Expr
      compiler::LocalVarExpr

Source

LocalVarExpr is used to access a local variable stored in a register.

assignRequiresTempVar

virtual override Bool assignRequiresTempVar()

Source

isAssignable

virtual override Bool isAssignable()

Source

make

new make(Loc loc, MethodVar? var, ExprId id := ExprId.localVar)

Source

makeNoUnwrap

static LocalVarExpr makeNoUnwrap(Loc loc, MethodVar var)

Source

register

virtual Int register()

Source

sameVarAs

virtual override Bool sameVarAs(Expr that)

Source

toStr

virtual override Str toStr()

Source

unwrap

Bool unwrap := true

Source

var

MethodVar? var

Source