push
fun push(line: Int, char: Int, length: Int, tokenType: Int, tokenModifiers: Int = definedExternally)(source)
Add another token.
Parameters
line
The token start line number (absolute value).
char
The token start character (absolute value).
length
The token length in characters.
tokenType
The encoded token type.
tokenModifiers
The encoded token modifiers.
fun push(range: Range, tokenType: String, tokenModifiers: ReadonlyArray<JsString> = definedExternally)(source)
Add another token. Use only when providing a legend.
Parameters
range
The range of the token. Must be single-line.
tokenType
The token type.
tokenModifiers
The token modifiers.