on

inline fun <T : Node> on(noinline hook: (T) -> Unit): ObservableAstIterator

Registers a hook that will be called when a node of type T is visited.

Return

this for concatenation

Parameters

hook

action to be called, with the visited node as parameter

T

desired node type