Children of the node if it's a non-terminal
Name of the node, available in path expressions
Offset from 0 in the file, if available
Used to evaluate ancestor and other such predicates efficiently. If not available, backup resolution will attempt to navigate from document root if available.
Value. If this is a terminal node, its own value, which will always be available. If it's a non-terminal, the value is not guaranteed to be available. If it is, it will be the text from the offset to the end of the last token. This preserves white space between non-terminals.
Delete the match. Same as setting $value to the empty string, but can zap trailing spaces also
Generated using TypeDoc
Extension of TreeNode that allows convenient addition before or after a node, without updating the node's value.