
class
compiler::FieldExpr
sys::Obj compiler::Node compiler::Expr compiler::NameExpr compiler::FieldExpr
FieldExpr is used for a field variable access.
Slots
- asTableSwitchCase
-
override Int asTableSwitchCase()
Return this expression as an Int literal usable in a tableswitch, or null if this Expr doesn't represent a constant Int. Expressions which work as table switch cases: int literals and enum constants
- assignRequiresTempVar
-
override Bool assignRequiresTempVar()
Assignments to instance fields require a temporary local variable.
- field
-
CField field
- isAssignable
-
override Bool isAssignable()
Return if this expression can be used as the left hand side of an assignment expression.
- make
-
new make(Location location, Expr target := null, CField field := null, Bool useAccessor := true)
- serialize
-
override Str serialize()
Return this expression as serialization text or throw exception if not serializable.
- toStr
-
override Str toStr()
Return a string representation of this object.
- useAccessor
-
Bool useAccessor