UNPKG

expression-evaluation

Version:
17 lines (16 loc) 706 B
import { Node } from '../Node.js'; import { ParserFrame } from '../ParserFrame.js'; import { Type, Value } from '../Type.js'; import { FunctionSignature } from '../FunctionSignature.js'; export declare class ConstantNode extends Node { protected readonly _value: Value; protected readonly _signature?: FunctionSignature | undefined; protected _subnode?: Node | undefined; constructor(frame: ParserFrame, _value: Value, _signature?: FunctionSignature | undefined, _subnode?: Node | undefined); get type(): Type; compile(type: Type): Node; evaluate(): Value; get constant(): boolean; get signature(): FunctionSignature | undefined; toString(ident?: number): string; }