Function

traverseAncestors

Executes [block] for all ancestors with a matching [key].

traverseAncestors

Common
fun DelegatableNode.traverseAncestors(key: Any?, block: (TraversableNode) -> Boolean)

Executes block for all ancestors with a matching key.

Note: The parameter block's return boolean value will determine if the traversal will continue (true = continue, false = cancel).


traverseAncestors

Common
fun <T> T.traverseAncestors(block: (T) -> Boolean) where T : TraversableNode

Executes block for all ancestors of the same class and key.

Note: The parameter block's return boolean value will determine if the traversal will continue (true = continue, false = cancel).