Skip to main content

Module traverse

Module traverse 

Source
Expand description

Reachable-node traversal helpers for a [LayoutPlan].

Functionsยง

all_reachable_ids
Return every NodeId reachable from the document root, in a stable (document-order) traversal: extensions first, then content children.
child_node_id
Return the child node at a single PathSegment under parent.
children_of
Return the direct children of parent along with the PathSegment used to address each one. Extensions come first, then content children in their document order.