traverse

fun traverse(rootNode: Node)

Traverses the given AST node and its descendants depth-first order and calls the protected visit method for each node.

Parameters

rootNode

root AST node to traverse.