demandParentNode

open fun demandParentNode(node: Node): Node(source)


open fun demandParentNode(node: Node, isAcceptedParentNode: Predicate<Node>): Node(source)

Traverses the parent chain starting at node and returns the first Node that returns make isAcceptedParentNode evaluate to true.