UNPKG

js-slang

Version:

Javascript-based implementations of Source, written in Typescript

24 lines (23 loc) 1.14 kB
import { BinaryExpression, BinaryOperator, Comment, SourceLocation } from 'estree'; import { StepperBaseNode } from '../../interface'; import { StepperExpression, StepperPattern } from '..'; export declare class StepperBinaryExpression implements BinaryExpression, StepperBaseNode { type: 'BinaryExpression'; operator: BinaryOperator; left: StepperExpression; right: StepperExpression; leadingComments?: Comment[]; trailingComments?: Comment[]; loc?: SourceLocation | null; range?: [number, number]; constructor(operator: BinaryOperator, left: StepperExpression, right: StepperExpression, leadingComments?: Comment[], trailingComments?: Comment[], loc?: SourceLocation | null, range?: [number, number]); static create(node: BinaryExpression): StepperBinaryExpression; isContractible(): boolean; isOneStepPossible(): boolean; contract(): StepperExpression; oneStep(): StepperExpression; substitute(id: StepperPattern, value: StepperExpression): StepperExpression; freeNames(): string[]; allNames(): string[]; rename(before: string, after: string): StepperExpression; }