Skip to content

달빛약속 / ConditionalLoop

Class: ConditionalLoop ​

Extends ​

Constructors ​

ConditionalLoop() ​

ConditionalLoop(condition, body, tokens): ConditionalLoop

Parameters ​

• condition: Evaluable<unknown, ValueType>

• body: Block

• tokens: Token[]

Returns ​

ConditionalLoop

Overrides ​

Executable.constructor

Defined in ​

core/node/conditional-loop.ts:17

Properties ​

subnode ​

subnode: object

body ​

body: Block

condition ​

condition: Evaluable<unknown, ValueType>

Inherited from ​

Executable.subnode

Defined in ​

core/node/base.ts:29


tokens ​

tokens: Token[]

Inherited from ​

Executable.tokens

Defined in ​

core/node/conditional-loop.ts:20


value? ​

optional value: string

Inherited from ​

Executable.value

Defined in ​

core/node/base.ts:30


accepts ​

static accepts: NodeCapability[]

Overrides ​

Executable.accepts

Defined in ​

core/node/conditional-loop.ts:15


friendlyName ​

static friendlyName: string = '반복 동안'

Overrides ​

Executable.friendlyName

Defined in ​

core/node/conditional-loop.ts:14

Methods ​

execute() ​

execute(scope): Promise<void>

Parameters ​

• scope: Scope

Returns ​

Promise<void>

Overrides ​

Executable.execute

Defined in ​

core/node/conditional-loop.ts:30


getNodeTypeName() ​

protected getNodeTypeName(): string

Returns ​

string

Inherited from ​

Executable.getNodeTypeName

Defined in ​

core/node/base.ts:45


onRunChild() ​

protected onRunChild(__namedParameters): Promise<void>

Parameters ​

• __namedParameters

• __namedParameters.childTokens: Token[]

• __namedParameters.scope: Scope

• __namedParameters.skipReport?: boolean

Returns ​

Promise<void>

Inherited from ​

Executable.onRunChild

Defined in ​

core/node/base.ts:65


toPrint() ​

toPrint(): string

Returns ​

string

Inherited from ​

Executable.toPrint

Defined in ​

core/node/base.ts:61


validate() ​

validate(scope): YaksokError<unknown>[]

Parameters ​

• scope: Scope

Returns ​

YaksokError<unknown>[]

Overrides ​

Executable.validate

Defined in ​

core/node/conditional-loop.ts:62