Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UnexpectedTokenError

Indicates that the parser could not transition from its current state to another state because of the token received.

Hierarchy

Index

Constructors

  • new UnexpectedTokenError(tokenName: string, begin: LineColumn, end: LineColumn): UnexpectedTokenError
  • Parameters

    • tokenName: string

      The name of the token.

    • begin: LineColumn

      The position of the beginning of the token.

    • end: LineColumn

      The position of the ending of the token.

    Returns UnexpectedTokenError

Properties

begin?: Position

The position of the beginning of the error.

end?: Position

The position of the ending of the error.

message: string
name: string
stack?: string
tokenName: string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc