UNPKG

buntis

Version:

A 100% compliant, self-hosted typescript parser that emits an ESTree-compatible abstract syntax tree

21 lines 632 B
import { Errors } from '../errors'; export declare const enum Escape { Empty = -1, InvalidCodePoint = -2, InvalidHex = -3, UnicodeOverflow = -4, InvalidSequence = -5, InvalidUnicode = -6, MissingCurlyBrace = -7 } export declare const enum UnicodeEscape { Empty = -1, StrictOctal = -2, EightOrNine = -3, InvalidHex = -4, OutOfRange = -5, MissingCurlyBrace = -6 } export declare function handleIdentifierError(code: Escape): Errors; export declare function handleEscapeError(code: UnicodeEscape, isTemplate: 0 | 1): Errors; //# sourceMappingURL=recovery.d.ts.map