sval
Version:
A javascript interpreter written in javascript
14 lines (13 loc) • 787 B
TypeScript
import { VarKind } from '../scope/variable.ts';
import { default as Scope } from '../scope/index.ts';
import * as acorn from 'acorn';
export interface PatternOptions {
kind?: VarKind;
hoist?: boolean;
onlyBlock?: boolean;
feed?: any;
}
export declare function ObjectPattern(node: acorn.ObjectPattern, scope: Scope, options?: PatternOptions): Generator<any, void, any>;
export declare function ArrayPattern(node: acorn.ArrayPattern, scope: Scope, options?: PatternOptions): Generator<any, any[], any>;
export declare function RestElement(node: acorn.RestElement, scope: Scope, options?: PatternOptions): Generator<any, void, any>;
export declare function AssignmentPattern(node: acorn.AssignmentPattern, scope: Scope, options?: PatternOptions): Generator<any, void, any>;