Traqula
    Preparing search index...

    Function createTokenInstance

    • Utility to create Chevrotain IToken "instances" Note that Chevrotain tokens are not real TokenTypes instances and thus the instanceOf cannot be used with them.

      Parameters

      • tokType: TokenType
      • image: string
      • startOffset: number
      • endOffset: number
      • startLine: number
      • endLine: number
      • startColumn: number
      • endColumn: number

      Returns IToken