Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoundaryTokensInRange ¶
Due to the way we have structured our parser fields Collection blocks with no content such as fields {} return no nodes which means we cant purely rely on node.inRange check so it is necessary to examine the underlying tokens emitted by the parser
Types ¶
type Node ¶
func (Node) GetPositionRange ¶
GetPositionRange returns a start and end position that correspond to Node The behaviour of start position is exactly the same as the Pos field that participle provides but the end position is calculated from the position of the last token in this node, which is more useful if you want to know where _this_ node starts and ends.
func (Node) HasEndPosition ¶
type ParserNode ¶
Click to show internal directories.
Click to hide internal directories.