Options
All
  • Public
  • Public/Protected
  • All
Menu

Class for representing a Token.

Hierarchy

  • Token

Index

Constructors

Properties

Constructors

constructor

  • new Token(type: string, value?: string | null, positionStart?: number | null, positionEnd?: number | null): Token
  • Constructor for a Token.

    Parameters

    • type: string

      Token type.

    • Default value value: string | null = null

      Token value.

    • Default value positionStart: number | null = null

      Token starting position.

    • Default value positionEnd: number | null = null

      Token ending position.

    Returns Token

Properties

positionEnd

positionEnd: number | null

Token ending position.

positionStart

positionStart: number | null

Token starting position.

type

type: string

Token type.

value

value: string | null

Token value.

Generated using TypeDoc