IterativeGraphWalker

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun iterate(root: Node)

The core iterative AST traversal algorithm: In a depth-first way we descend into the tree, providing callbacks for graph modification.

Link copied to clipboard

Registers a Callback.

Link copied to clipboard
fun registerReplacement(from: Node, to: Node)

Sometimes during walking the graph, we are replacing the current node. This causes problems, that the walker still assumes the old node. Calling this function will ensure that the walker knows about the new node.