Current visitor context.

interface Context<NodeType extends Node> {
    axis: NodeType[];
    parent?: NodeType;
}

Type Parameters

  • NodeType extends Node

Properties

Properties

axis: NodeType[]

Path of the current node (root is first item, and so on).

parent?: NodeType

The current node's parent, if any.