Link Search Menu Expand Document

Context interface

The parsing context for a token

Signature:

export interface Context 

Properties

Property Type Description
col number Token start column, starting from 1
line number Token start line number, starting from 1
lineBreaks number The number of line breaks consumed while parsing the token
offset number Token start index from the beginning of the input string
text string The raw input source for the token