Create a new instance using the given nodes. All nodes must implement the ITreeNode interface.
Create a new instance using the given nodes. The childrenCallback will be called to get all children for a node.
Advances to the target node
If there are more content blocks to visit by calling next()
Returns the next node in depth-first order. Calling this method if hasNext() return false will throw an error.
Generated using TypeDoc
Used for traversing tree structures in depth-first order.
The nodes being traversed must either implement the ITreeNode interface, or you can pass a callback in the constructor that should return all children for the given node.