import { Node } from './node'; import { Code } from './instructions'; /** * Stack frame. */ export declare class Frame { readonly node: Node; readonly parent?: Frame | undefined; currentIndex: number; stopResolution: boolean; private variables?; private macros?; constructor(node: Node, parent?: Frame | undefined); /** * Adds a variable to this frame. */ setVar(name: string, node: Node): void; /** * Returns a variable's value, or a missing node. */ getVar(name: string): Node; /** * Returns the map containing the local variables for this frame. */ getVars(): Map | undefined; /** * Adds a macro to this frame. */ setMacro(name: string, inst: Code): void; _getMacro(name: string): Code | null; }