walkWithin

open fun <N> walkWithin(node: Node, range: Range, consumer: Consumer<Node>)

Walks the AST within the given range starting from the given node and returns the result as sequence to consume.

Parameters

node

the node from which the walk should start

range

the range within which the walk should remain


open fun <N> walkWithin(nodes: List<Node>, range: Range, consumer: Consumer<Node>)

Walks the AST within the given range starting from each give node and concatenates all results in a single sequence to consume.

Parameters

nodes

the nodes from which the walk should start

range

the range within which the walk should remain