class compiler::LiteralExpr

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

Source

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

asTableSwitchCase

virtual override Int? asTableSwitchCase()

Source

isAlwaysNullable

virtual override Bool isAlwaysNullable()

Source

make

new make(Loc loc, ExprId id, CType ctype, Obj? val)

Source

makeDefaultLiteral

static LiteralExpr makeDefaultLiteral(Loc loc, CNamespace ns, CType ctype)

Source

makeFalse

new makeFalse(Loc loc, CNamespace ns)

Source

makeNull

new makeNull(Loc loc, CNamespace ns)

Source

makeStr

new makeStr(Loc loc, CNamespace ns, Str val)

Source

makeTrue

new makeTrue(Loc loc, CNamespace ns)

Source

serialize

virtual override Str serialize()

Source

toStr

virtual override Str toStr()

Source

val

Obj? val

Source