the source for this position
the offset into the source string
The column number referred to by this position, starting at 1.
The line number referred to by this position, starting at 1.
The contents of the line at the current offset (not including a newline).
The contents of the line at the current offset, decorated with a caret indicating the column.
The contents of the line at the current offset, decorated with a caret indicating the column. Example:
The content of the current line with a caret under the c.
^
the offset into the source string
the source for this position
A string representation of this Position of the form line.column
.
A string representation of this Position of the form line.column
.
Represents an offset into a source string. Its main purpose is error reporting, e.g. printing a visual representation of the line containing the error.
the source for this position
the offset into the source string