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:13

Properties

children

children: Node[]

Defined in

core/node/block.ts:11


tokens

tokens: Token[]

Inherited from

Executable.tokens

Defined in

core/node/block.ts:13


friendlyName

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

Overrides

Executable.friendlyName

Defined in

core/node/block.ts:9

Methods

execute()

execute(scope): Promise<void>

Parameters

scope

Scope

Returns

Promise<void>

Overrides

Executable.execute

Defined in

core/node/block.ts:18


toJSON()

toJSON(): object

Returns

object

Inherited from

Executable.toJSON

Defined in

core/node/base.ts:13


toPrint()

toPrint(): string

Returns

string

Inherited from

Executable.toPrint

Defined in

core/node/base.ts:32