Skip to content

달빛약속 / Scope

Class: Scope ​

Constructors ​

Scope() ​

Scope(config): Scope

Parameters ​

• config: object | object & object

Returns ​

Scope

Defined in ​

core/executer/scope.ts:32

Properties ​

codeFile? ​

readonly optional codeFile: CodeFile

Defined in ​

core/executer/scope.ts:28


events ​

readonly events: Map<string, DeclareEvent>

Defined in ​

core/executer/scope.ts:25


functions ​

readonly functions: Map<string, RunnableObject>

Defined in ​

core/executer/scope.ts:24


id ​

readonly id: string

Defined in ​

core/executer/scope.ts:23


parent ​

parent: Scope

Defined in ​

core/executer/scope.ts:21


session ​

readonly session: YaksokSession

Defined in ​

core/executer/scope.ts:27


variables ​

variables: Record<string, ValueType>

Defined in ​

core/executer/scope.ts:20

Accessors ​

finalized ​

Get Signature ​

get finalized(): boolean

Returns ​

boolean

Defined in ​

core/executer/scope.ts:58

Methods ​

addFunctionObject() ​

addFunctionObject(functionObject): void

Parameters ​

• functionObject: RunnableObject

Returns ​

void

Defined in ​

core/executer/scope.ts:125


askSetVariable() ​

askSetVariable(name, value): boolean

Parameters ​

• name: string

• value: ValueType

Returns ​

boolean

Defined in ​

core/executer/scope.ts:78


finalize() ​

finalize(): void

Returns ​

void

Defined in ​

core/executer/scope.ts:62


getAccessibleNames() ​

getAccessibleNames(): Generator<string>

Returns ​

Generator<string>

Defined in ​

core/executer/scope.ts:115


getExportedRules() ​

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

Returns ​

Generator<Rule<Node[]>>

Defined in ​

core/executer/scope.ts:158


getFunctionObject() ​

getFunctionObject(name): RunnableObject

Parameters ​

• name: string

Returns ​

RunnableObject

Defined in ​

core/executer/scope.ts:140


getVariable() ​

getVariable(name, tokens?): ValueType

Parameters ​

• name: string

• tokens?: Token[]

Returns ​

ValueType

Defined in ​

core/executer/scope.ts:95


setVariable() ​

setVariable(name, value): void

Parameters ​

• name: string

• value: ValueType

Returns ​

void

Defined in ​

core/executer/scope.ts:66