TreePos

data class TreePos<T : IndexTreeNode<T>>(val node: T, val offset: Int)

TreePos is the position of a node in the tree.

offset is the position of node's token. For example, if the node is an element node, the offset is the index of the child node. If the node is a text node, the offset is the index of the character.

Constructors

Link copied to clipboard
constructor(node: T, offset: Int)

Properties

Link copied to clipboard
val node: T
Link copied to clipboard
val offset: Int