MutableVisitor

open class MutableVisitor

Visitor for AST nodes that can mutate the nodes.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun <T : Node> traverse(rootNode: T): T

Traverse the given AST node and its descendants depth-first order and calls the protected preVisit and postVisit methods for each node. When the methods return a different node, the node is replaced with the returned node.