UNPKG

expression-evaluation

Version:
16 lines (15 loc) 621 B
import { Node } from '../Node.js'; import { ParserFrame } from '../ParserFrame.js'; import { Variable } from '../Variable.js'; import { Type, Value } from '../Type.js'; import { FunctionSignature } from '../FunctionSignature.js'; export declare class VariableNode extends Node { protected readonly _variable: Variable; protected _subnode?: Node | undefined; constructor(frame: ParserFrame, _variable: Variable, _subnode?: Node | undefined); get type(): Type; compile(type: Type): Node; evaluate(): Value; get signature(): FunctionSignature | undefined; toString(ident?: number): string; }