logo

class

compiler::LiteralExpr

sys::Obj
  compiler::Node
    compiler::Expr
      compiler::LiteralExpr

LiteralExpr puts an Bool, Int, Float, Str, Duration, Uri, or null constant onto the stack.

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

make

new make(Location location, ExprId id, CType ctype, Obj val)

Source

makeFor

static LiteralExpr makeFor(Location loc, CNamespace ns, Obj val)

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

val

Obj val

Source