@wdprlib/parser
    Preparing search index...

    Function createToken

    • Construct a Token value.

      Parameters

      • type: TokenType

        The lexeme category

      • value: string

        Literal source text

      • position: Position

        Source location range

      • lineStart: boolean = false

        Whether the token starts a new line

      Returns Token

      A new token object