Skip to content

yaksok.tsDocs


yaksok.ts / List

Class: List

Extends

Constructors

new List()

ts
new List(initialValue): List

Parameters

initialValue: Evaluable[]

Returns

List

Overrides

IndexedValue.constructor

Defined in

src/node/list.ts:34

Properties

items?

ts
optional items: ValueTypes[];

Defined in

src/node/list.ts:32


position?

ts
optional position: Position;

Inherited from

IndexedValue.position

Defined in

src/node/base.ts:16


friendlyName

ts
static friendlyName: string = '목록';

Overrides

IndexedValue.friendlyName

Defined in

src/node/list.ts:30

Methods

execute()

ts
execute(_scope, _callFrame): List

Parameters

_scope: Scope

_callFrame: CallFrame

Returns

List

Overrides

IndexedValue.execute

Defined in

src/node/list.ts:38


getItem()

ts
getItem(
   index, 
   scope, 
   callFrame): ValueTypes

Parameters

index: ValueTypes

scope: Scope

callFrame: CallFrame

Returns

ValueTypes

Overrides

IndexedValue.getItem

Defined in

src/node/list.ts:50


setItem()

ts
setItem(index, value): PrimitiveValue<unknown>

Parameters

index: PrimitiveValue<unknown>

value: PrimitiveValue<unknown>

Returns

PrimitiveValue<unknown>

Overrides

IndexedValue.setItem

Defined in

src/node/list.ts:95


toJSON()

ts
toJSON(): object

Returns

object

Inherited from

IndexedValue.toJSON

Defined in

src/node/base.ts:19


toPrint()

ts
toPrint(): string

Returns

string

Overrides

IndexedValue.toPrint

Defined in

src/node/list.ts:161


evaluateList()

ts
static evaluateList(
   items, 
   scope, 
   callFrame): ValueTypes[]

Parameters

items: Evaluable[]

scope: Scope

callFrame: CallFrame

Returns

ValueTypes[]

Defined in

src/node/list.ts:109