yaksok.ts • Docs
yaksok.ts / Scope
Class: Scope
Constructors
new Scope()
ts
new Scope(config): Scope
Parameters
• config = {}
• config.initialVariable?: Record
<string
, ValueTypes
>
• config.parent?: Scope
• config.runtime?: Runtime
Returns
Defined in
Properties
functions
ts
functions: Record<string, DeclareFunction | DeclareFFI> = {};
Defined in
parent
ts
parent: Scope;
Defined in
runtime?
ts
optional runtime: Runtime;
Defined in
variables
ts
variables: Record<string, ValueTypes>;
Defined in
Methods
askSetVariable()
ts
askSetVariable(name, value): boolean
Parameters
• name: string
• value: ValueTypes
Returns
boolean
Defined in
getFunction()
ts
getFunction(name): DeclareFunction | DeclareFFI
Parameters
• name: string
Returns
Defined in
getVariable()
ts
getVariable(name): ValueTypes
Parameters
• name: string
Returns
Defined in
setFunction()
ts
setFunction(name, functionBody): void
Parameters
• name: string
• functionBody: DeclareFunction
| DeclareFFI
Returns
void
Defined in
setVariable()
ts
setVariable(name, value): void
Parameters
• name: string
• value: ValueTypes
Returns
void