UNPKG

js-slang

Version:

Javascript-based implementations of Source, written in Typescript

26 lines (25 loc) 1.42 kB
import { BlockStatement, Comment, SourceLocation } from 'estree'; import { StepperBaseNode } from '../../interface'; import { StepperExpression, StepperPattern, undefinedNode } from '..'; import { StepperStatement } from '.'; export declare class StepperBlockStatement implements BlockStatement, StepperBaseNode { type: 'BlockStatement'; body: StepperStatement[]; innerComments?: Comment[] | undefined; leadingComments?: Comment[] | undefined; trailingComments?: Comment[] | undefined; loc?: SourceLocation | null | undefined; range?: [number, number] | undefined; constructor(body: StepperStatement[], innerComments?: Comment[] | undefined, leadingComments?: Comment[] | undefined, trailingComments?: Comment[] | undefined, loc?: SourceLocation | null | undefined, range?: [number, number] | undefined); static create(node: BlockStatement): StepperBlockStatement; isContractible(): boolean; isOneStepPossible(): boolean; contract(): StepperBlockStatement | StepperStatement | typeof undefinedNode; contractEmpty(): void; oneStep(): StepperBlockStatement | StepperStatement | typeof undefinedNode; substitute(id: StepperPattern, value: StepperExpression, upperBoundName?: string[]): StepperBaseNode; scanAllDeclarationNames(): string[]; freeNames(): string[]; allNames(): string[]; rename(before: string, after: string): StepperBlockStatement; }