logo
class

compiler::UnaryExpr

sys::Obj
  compiler::Node
    compiler::Expr
      compiler::UnaryExpr

UnaryExpr is used for unary expressions including !, +. Note that - is mapped to negate() as a shortcut method.

Slots

make

new make(Location location, ExprId id, Token opToken, Expr operand)

opToken

Token opToken

operand

Expr operand

toStr

virtual Str toStr()

walkChildren

virtual Void walkChildren(Visitor v)