Documentation ¶
Overview ¶
posrange is used to report a position in query strings for error and warning messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pos ¶
type Pos int
Pos is the position in a string. Negative numbers indicate undefined positions.
type PositionRange ¶
PositionRange describes a position in the input string of the parser.
func (PositionRange) StartPosInput ¶
func (p PositionRange) StartPosInput(query string, lineOffset int) string
StartPosInput uses the query string to convert the PositionRange into a line:col string, indicating when this is not possible if the query is empty or the position is invalid. When this is used to convert ParseErr to a string, lineOffset is an additional line offset to be added, and is only used inside unit tests.
Click to show internal directories.
Click to hide internal directories.