logo

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

Source

assignRequiresTempVar

override Bool assignRequiresTempVar()

Assignments to instance fields require a temporary local variable.

Source

field

CField field

Source

isAssignable

override Bool isAssignable()

Return if this expression can be used as the left hand side of an assignment expression.

Source

make

new make(Location location, Expr target := null, CField field := null, Bool useAccessor := true)

Source

serialize

override Str serialize()

Return this expression as serialization text or throw exception if not serializable.

Source

toStr

override Str toStr()

Return a string representation of this object.

Source

useAccessor

Bool useAccessor

Source