NodeVisitor

fun interface NodeVisitor

Simple visitor for traversing the AST. Nodes are visited in an arbitrary order; the visitor casts nodes to the right type based on their token type.

Functions

Link copied to clipboard
abstract fun visit(node: AstNode): Boolean

Visits an AST node. Never receives an AstRoot, since that is where visiting begins.