accept

open override fun <T> accept(visitor: ExpressionVisitor<T>): T

Accepts a visitor that is traversing an expression tree by dispatching to a subtype implementation. Subtype implementations MUST call the ExpressionVisitor.visit overload for their concrete type (effectively forming a double dispatch) and MUST return the resulting value.

Parameters

visitor

The ExpressionVisitor that is traversing an expression