MultiExpr

data class MultiExpr(list: List<Node>, last: Expr, section: Section?) : Expr, Node.Multi

This represents a given list of nodes, with the last node being necessarily an expression. Nodes must be executed sequentially. The value of this expression is the last expression's value. This AST node's main use is lambda bodies and REPL scopes.

Constructors

MultiExpr
Link copied to clipboard
fun MultiExpr(list: List<Node>, last: Expr, section: Section? = null)

Functions

accept
Link copied to clipboard
open override fun accept(visitor: NodeMapVisitor): Expr
open override fun accept(visitor: NodeVisitor)
open override fun <R> accept(visitor: NodeVisitorR<R>): R
open override fun <T> accept(visitor: NodeVisitor1<T>, param0: T)
lastNode
Link copied to clipboard
open override fun lastNode(): Expr
nodes
Link copied to clipboard
open override fun nodes(): List<Node>
span
Link copied to clipboard
open fun span(other: Sectional): Section?

Properties

last
Link copied to clipboard
val last: Expr
list
Link copied to clipboard
val list: List<Node>
section
Link copied to clipboard
open override val section: Section? = null