UNPKG

meriyah

Version:

A 100% compliant, self-hosted javascript parser with high focus on both performance and stability

10 lines (9 loc) 690 B
import { Token } from './token'; import type * as ESTree from './estree'; import { Context, type Location } from './common'; import { Parser } from './parser/parser'; import { type Options } from './options'; import { type Scope } from './parser/scope'; export declare function parseSource(source: string, rawOptions?: Options, context?: Context): ESTree.Program; export declare function parseModuleItem(parser: Parser, context: Context, scope: Scope | undefined): any; export declare function parseDirective(parser: Parser, context: Context, expression: ESTree.ArgumentExpression | ESTree.SequenceExpression | ESTree.Expression, token: Token, start: Location): ESTree.ExpressionStatement;