Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Token

Hierarchy

  • Token

Index

Constructors

constructor

  • new Token(type?: TokenType, value?: string, location?: object): Token

Properties

Private loc

loc: any

The location.

Private pvalue

pvalue: string

The prepend value.

stype

stype: string

The enum string value of the token type.

type

type: TokenType

The enum value of the token type.

value

value: string

The string value of the token character.

Methods

isEqual

location

  • location(): object

prepend

  • prepend(value?: string): Token

setLocation

  • setLocation(location: any): Token

setType

setValue

  • setValue(value: any): Token

toJSON

  • toJSON(): object

toString

  • toString(): string

typeToString

  • typeToString(): string

Static stringToType

Static typeToString

  • typeToString(type: TokenType, prepend?: string): string

Generated using TypeDoc