LocalVarExpr is used to access a local variable stored in a register.
Slots
- assignRequiresTempVarSource
-
override Bool assignRequiresTempVar()
Overrides compiler::Expr.assignRequiresTempVar
Doc inherited from compiler::Expr.assignRequiresTempVar
Assignments to instance fields require a temporary local variable.
- isAssignableSource
-
override Bool isAssignable()
Overrides compiler::Expr.isAssignable
Doc inherited from compiler::Expr.isAssignable
Return if this expression can be used as the left hand side of an assignment expression.
- makeSource
-
new make(Loc loc, MethodVar? var, ExprId id := ExprId.localVar)
- makeNoUnwrapSource
- registerSource
-
virtual Int register()
- sameVarAsSource
-
override Bool sameVarAs(Expr that)
Overrides compiler::Expr.sameVarAs
Doc inherited from compiler::Expr.sameVarAs
Return if this expression represents the same variable or field as that. This is used for self assignment checks.
- toStrSource
-
override Str toStr()
Overrides compiler::Expr.toStr
Doc inherited from sys::Obj.toStr
Return a string representation of this object.
- unwrapSource
-
Bool unwrap := true
- varSource
-
MethodVar? var