UNPKG

js-slang

Version:

Javascript-based implementations of Source, written in Typescript

22 lines (21 loc) 1.04 kB
import { ArrayExpression, Comment, SourceLocation } from 'estree'; import { StepperBaseNode } from '../../interface'; import { StepperExpression, StepperPattern } from '..'; export declare class StepperArrayExpression implements ArrayExpression, StepperBaseNode { type: 'ArrayExpression'; elements: (StepperExpression | null)[]; leadingComments?: Comment[]; trailingComments?: Comment[]; loc?: SourceLocation | null; range?: [number, number]; constructor(elements: (StepperExpression | null)[], leadingComments?: Comment[], trailingComments?: Comment[], loc?: SourceLocation | null, range?: [number, number]); static create(node: ArrayExpression): StepperArrayExpression; isContractible(): boolean; isOneStepPossible(): boolean; contract(): StepperExpression; oneStep(): StepperExpression; substitute(id: StepperPattern, value: StepperExpression): StepperExpression; freeNames(): string[]; allNames(): string[]; rename(before: string, after: string): StepperExpression; }