Skip to content

달빛약속 / core/mod / Block

Class: Block ​

Extends ​

Indexable ​

[key: string]: unknown

Constructors ​

new Block() ​

new Block(content, tokens): Block

Parameters ​

content ​

Node[]

tokens ​

Token[]

Returns ​

Block

Overrides ​

Executable.constructor

Defined in ​

core/node/block.ts:15

Properties ​

children ​

children: Node[]

Defined in ​

core/node/block.ts:13


tokens ​

tokens: Token[]

Inherited from ​

Executable.tokens

Defined in ​

core/node/block.ts:15


friendlyName ​

static friendlyName: string = '코드 덩어리'

Overrides ​

Executable.friendlyName

Defined in ​

core/node/block.ts:11

Methods ​

execute() ​

execute(scope): Promise<void>

Parameters ​

scope ​

Scope

Returns ​

Promise<void>

Overrides ​

Executable.execute

Defined in ​

core/node/block.ts:20


reportRunningCode() ​

reportRunningCode(child, scope): void

Parameters ​

child ​

Executable

scope ​

Scope

Returns ​

void

Defined in ​

core/node/block.ts:62


toJSON() ​

toJSON(): object

Returns ​

object

Inherited from ​

Executable.toJSON

Defined in ​

core/node/base.ts:20


toPrint() ​

toPrint(): string

Returns ​

string

Inherited from ​

Executable.toPrint

Defined in ​

core/node/base.ts:39


validate() ​

validate(scope): YaksokError<unknown>[]

Parameters ​

scope ​

Scope

Returns ​

YaksokError<unknown>[]

Overrides ​

Executable.validate

Defined in ​

core/node/block.ts:54