expression-evaluation
Version:
Expression Evaluation
14 lines (13 loc) • 544 B
TypeScript
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>;
}