Generator yielding the ancestors of node, from its immediate parent up to the root, using the given getParent accessor.
node
getParent
The node to walk up from.
Returns the parent of a given node, or null for a root node.
null
Generator yielding the ancestors of
node, from its immediate parent up to the root, using the givengetParentaccessor.