Options to configure TreeWalker

interface TreeWalkerOptions<NodeType extends Node> {
    root?: NodeType;
    visitor?: Partial<Visitor<NodeType>>;
    visitRoot?: boolean;
}

Type Parameters

  • NodeType extends Node

Properties

root?: NodeType

The node where to start walking the tree.

visitor?: Partial<Visitor<NodeType>>

The visitor doing some work on a visited node.

visitRoot?: boolean

Indicates if the root node shall be visited or not.