Scope
Defined in: core/executer/scope.ts:19
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Scope(
config):Scope
Defined in: core/executer/scope.ts:32
Parameters
Section titled “Parameters”config
Section titled “config”({ codeFile?: CodeFile; session: YaksokSession; } | { parent: Scope; }) & object
Returns
Section titled “Returns”Scope
Properties
Section titled “Properties”codeFile?
Section titled “codeFile?”
readonlyoptionalcodeFile?:CodeFile
Defined in: core/executer/scope.ts:28
events
Section titled “events”
readonlyevents:Map<string,DeclareEvent>
Defined in: core/executer/scope.ts:25
functions
Section titled “functions”
readonlyfunctions:Map<string,RunnableObject>
Defined in: core/executer/scope.ts:24
readonlyid:string
Defined in: core/executer/scope.ts:23
parent
Section titled “parent”parent:
Scope|null
Defined in: core/executer/scope.ts:21
session
Section titled “session”
readonlysession:YaksokSession
Defined in: core/executer/scope.ts:27
variables
Section titled “variables”variables:
Record<string,ValueType>
Defined in: core/executer/scope.ts:20
Accessors
Section titled “Accessors”finalized
Section titled “finalized”Get Signature
Section titled “Get Signature”get finalized():
boolean
Defined in: core/executer/scope.ts:58
Returns
Section titled “Returns”boolean
Methods
Section titled “Methods”addFunctionObject()
Section titled “addFunctionObject()”addFunctionObject(
functionObject):void
Defined in: core/executer/scope.ts:124
Parameters
Section titled “Parameters”functionObject
Section titled “functionObject”Returns
Section titled “Returns”void
askSetVariable()
Section titled “askSetVariable()”askSetVariable(
name,value):boolean
Defined in: core/executer/scope.ts:78
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
finalize()
Section titled “finalize()”finalize():
void
Defined in: core/executer/scope.ts:62
Returns
Section titled “Returns”void
getAccessibleNames()
Section titled “getAccessibleNames()”getAccessibleNames():
Generator<string>
Defined in: core/executer/scope.ts:114
Returns
Section titled “Returns”Generator<string>
getExportedRules()
Section titled “getExportedRules()”getExportedRules():
Generator<Rule<Node<SubnodeScheme>[]>>
Defined in: core/executer/scope.ts:156
Returns
Section titled “Returns”Generator<Rule<Node<SubnodeScheme>[]>>
getFunctionObject()
Section titled “getFunctionObject()”getFunctionObject(
name):RunnableObject
Defined in: core/executer/scope.ts:139
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”getVariable()
Section titled “getVariable()”getVariable(
name,tokens?):ValueType
Defined in: core/executer/scope.ts:95
Parameters
Section titled “Parameters”string
tokens?
Section titled “tokens?”Token[]
Returns
Section titled “Returns”setVariable()
Section titled “setVariable()”setVariable(
name,value):void
Defined in: core/executer/scope.ts:66
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void