All Superinterfaces:
Elem
All Known Implementing Classes:
BindingExpr, DerefExpr, FunExpr, McallExpr, NumExpr, RcallExpr, SeqExpr, StrExpr, VarrefExpr, VecExpr

public non-sealed interface Expr extends Elem
An expression node of an AST of Kink program.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.kink_lang.kink.internal.program.ast.Elem

    Elem.Spread
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    accept(ExprVisitor<T> visitor)
    Accepts a node visitor.

    Methods inherited from interface org.kink_lang.kink.internal.program.ast.Elem

    pos
  • Method Details

    • accept

      <T> T accept(ExprVisitor<T> visitor)
      Accepts a node visitor.
      Type Parameters:
      T - the result type of the visitor.
      Parameters:
      visitor - the node visitor
      Returns:
      the result of the visitor.