• Constructs a TreeWalker.

    Type Parameters

    • NodeType extends Node = Node

      The type of tree nodes. Defaults to Node.

    Parameters

    • options: TreeWalkerOptions<NodeType> = {}

      The options for walking across the tree. The root node may be set globally for this TreeWalker instance. If the root node is not set, it has to be set in the options when start walking the tree. By default visitRoot is true.

    Returns TreeWalkerInterface<NodeType>

    The tree walker ready for walking the tree.

Generated using TypeDoc