Skip to content

달빛약속 / IfStatement

Class: IfStatement

Extends

Indexable

[key: string]: unknown

Constructors

new IfStatement()

new IfStatement(cases): IfStatement

Parameters

cases

Case[]

Returns

IfStatement

Overrides

Executable.constructor

Defined in

core/node/IfStatement.ts:16

Properties

cases

cases: Case[]

Defined in

core/node/IfStatement.ts:16


position?

optional position: Position

Inherited from

Executable.position

Defined in

core/node/base.ts:9


friendlyName

static friendlyName: string = '조건문(만약)'

Overrides

Executable.friendlyName

Defined in

core/node/IfStatement.ts:14

Methods

execute()

execute(scope, _callFrame): Promise<void>

Parameters

scope

Scope

_callFrame

CallFrame

Returns

Promise<void>

Overrides

Executable.execute

Defined in

core/node/IfStatement.ts:20


shouldStop()

shouldStop(condition, scope, _callFrame): Promise<boolean>

Parameters

condition

Evaluable<ValueType>

scope

Scope

_callFrame

CallFrame

Returns

Promise<boolean>

Defined in

core/node/IfStatement.ts:36


toJSON()

toJSON(): object

Returns

object

Inherited from

Executable.toJSON

Defined in

core/node/base.ts:12


toPrint()

toPrint(): string

Returns

string

Inherited from

Executable.toPrint

Defined in

core/node/base.ts:31