Skip to content

Scope

Defined in: core/executer/scope.ts:19

new Scope(config): Scope

Defined in: core/executer/scope.ts:32

({ codeFile?: CodeFile; session: YaksokSession; } | { parent: Scope; }) & object

Scope

readonly optional codeFile?: CodeFile

Defined in: core/executer/scope.ts:28


readonly events: Map<string, DeclareEvent>

Defined in: core/executer/scope.ts:25


readonly functions: Map<string, RunnableObject>

Defined in: core/executer/scope.ts:24


readonly id: string

Defined in: core/executer/scope.ts:23


parent: Scope | null

Defined in: core/executer/scope.ts:21


readonly session: YaksokSession

Defined in: core/executer/scope.ts:27


variables: Record<string, ValueType>

Defined in: core/executer/scope.ts:20

get finalized(): boolean

Defined in: core/executer/scope.ts:58

boolean

addFunctionObject(functionObject): void

Defined in: core/executer/scope.ts:124

RunnableObject

void


askSetVariable(name, value): boolean

Defined in: core/executer/scope.ts:78

string

ValueType

boolean


finalize(): void

Defined in: core/executer/scope.ts:62

void


getAccessibleNames(): Generator<string>

Defined in: core/executer/scope.ts:114

Generator<string>


getExportedRules(): Generator<Rule<Node<SubnodeScheme>[]>>

Defined in: core/executer/scope.ts:156

Generator<Rule<Node<SubnodeScheme>[]>>


getFunctionObject(name): RunnableObject

Defined in: core/executer/scope.ts:139

string

RunnableObject


getVariable(name, tokens?): ValueType

Defined in: core/executer/scope.ts:95

string

Token[]

ValueType


setVariable(name, value): void

Defined in: core/executer/scope.ts:66

string

ValueType

void