type
Expr
@Js
abstract const class Expr : Obj
Expr is the base class for Axon AST nodes. All expressions are immutable classes safe to share between threads once parsed.
methods
encode |
Encode the AST into a tree of dicts. |
---|---|
eval |
Evaluate this expression. |
loc |
Location of this expression in source code or |
toStr |
Print to string |
Slot Details
encode
Dict encode()
Encode the AST into a tree of dicts. See parseAst()
.
eval
abstract Obj? eval(AxonContext cx)
Evaluate this expression.
loc
abstract Loc loc()
Location of this expression in source code or Loc.unknown
.
toStr
virtual override Str toStr()
Print to string