UNPKG

expression-evaluation

Version:
14 lines (13 loc) 544 B
import { Variable } from './Variable.js'; export declare class StaticScope { protected _superscope?: StaticScope; protected _subscopes: StaticScope[]; protected _variables: Map<string, Variable>; protected _locals: Set<string>; has(name: string): boolean; get(name: string): Variable | undefined; global(name: string, variable: Variable): StaticScope; local(name: string, variable: Variable): StaticScope; subscope(variables: Map<string, Variable>): StaticScope; variables(): Record<string, Variable>; }