js-slang
Version:
Javascript-based implementations of Source, written in Typescript
10 lines (9 loc) • 610 B
TypeScript
import type es from 'estree';
import Closure from '../../cse-machine/closure';
import { Chapter, type Context, type Environment, type LanguageOptions, Variant } from '../../types';
export declare function mockContext(chapter?: Chapter, variant?: Variant, languageOptions?: LanguageOptions): Context;
export declare function mockImportDeclaration(): es.ImportDeclaration;
export declare function mockRuntimeContext(): Context;
export declare function mockClosure(): Closure;
export declare function mockEnvironment(context: Context, name?: string): Environment;
export declare function mockTransformers(): any;