UNPKG

js-ast-parser

Version:
12 lines (11 loc) 792 B
import { AstNode } from './lib/AstNode'; export declare function isIdentifierStart(code: any): boolean; export declare function isIdentifierChar(code: any): boolean; export declare function isNumberCharCode(code: any): boolean; export declare function isNumberStart(code: any): boolean; export declare function isOperator(word: string): boolean; export declare function isHexCharCode(code: number): boolean; export declare function getPriority(tokenOrLiteratureStatement: any): any; export declare function getLast(arr: Array<any>): any; export declare function assertUnexpect(parent: AstNode, child: AstNode, getUnexpectMsg?: (child: AstNode) => string | null): boolean; export declare function assertExpectNullStatement(parent: AstNode, child: AstNode, expect: string): boolean;