Skip to content

달빛약속 / Scope

Class: Scope

Constructors

new Scope()

new Scope(config): Scope

Parameters

config
codeFile

CodeFile

initialVariable

Record<string, ValueType>

parent

Scope

Returns

Scope

Defined in

core/executer/scope.ts:13

Properties

codeFile?

optional codeFile: CodeFile

Defined in

core/executer/scope.ts:10


parent

parent: Scope

Defined in

core/executer/scope.ts:9


variables

variables: Record<string, ValueType>

Defined in

core/executer/scope.ts:8

Methods

addFunctionObject()

addFunctionObject(functionObject): void

Parameters

functionObject

RunnableObject

Returns

void

Defined in

core/executer/scope.ts:60


askSetVariable()

askSetVariable(name, value): boolean

Parameters

name

string

value

ValueType

Returns

boolean

Defined in

core/executer/scope.ts:34


getFunctionObject()

getFunctionObject(name): RunnableObject

Parameters

name

string

Returns

RunnableObject

Defined in

core/executer/scope.ts:64


getVariable()

getVariable(name): ValueType

Parameters

name

string

Returns

ValueType

Defined in

core/executer/scope.ts:44


setVariable()

setVariable(name, value): void

Parameters

name

string

value

ValueType

Returns

void

Defined in

core/executer/scope.ts:29