Class TokenObj

A token object with some parsed text.

Hierarchy

  • TokenObj

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

_isATokenObj: true = true

Flag used to identify a token object.

text: string

The token text value.

type: TokenType

The token type.

Accessors

Methods

  • Returns true if the object matches this one.

    Parameters

    Returns boolean

    True if the objects are equal.

  • Returns true if the type matches this token's type.

    Parameters

    Returns boolean

    True if the type matches.

  • Returns {
        type: string;
        [prop: string]: string | string[] | HaysonVal;
    }

    A JSON representation of the token.

    • [prop: string]: string | string[] | HaysonVal
    • type: string

Generated using TypeDoc