Function createTokenInstance
- createTokenInstance(tokType: TokenType, image: string, startOffset: number, endOffset: number, startLine: number, endLine: number, startColumn: number, endColumn: number): IToken
-
Parameters
-
-
image: string
-
startOffset: number
-
endOffset: number
-
startLine: number
-
endLine: number
-
startColumn: number
-
endColumn: number
Utility to create Chevrotain IToken "instances" Note that Chevrotain tokens are not real TokenTypes instances and thus the instanceOf cannot be used with them.