Skip to content

달빛약속 / Block

Class: Block ​

Extends ​

Constructors ​

Block() ​

Block(content, tokens): Block

Parameters ​

• content: Node<unknown>[]

• tokens: Token[]

Returns ​

Block

Overrides ​

Executable.constructor

Defined in ​

core/node/block.ts:14

Properties ​

parsingErrors ​

parsingErrors: YaksokError<unknown>[] = []

Defined in ​

core/node/block.ts:12


subnode ​

subnode: Node<unknown>[]

Inherited from ​

Executable.subnode

Defined in ​

core/node/base.ts:29


tokens ​

tokens: Token[]

Inherited from ​

Executable.tokens

Defined in ​

core/node/block.ts:16


value? ​

optional value: string

Inherited from ​

Executable.value

Defined in ​

core/node/base.ts:30


accepts ​

static accepts: NodeCapability[] = []

Inherited from ​

Executable.accepts

Defined in ​

core/node/base.ts:33


friendlyName ​

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

Overrides ​

Executable.friendlyName

Defined in ​

core/node/block.ts:10

Methods ​

execute() ​

execute(scope): Promise<void>

Parameters ​

• scope: Scope

Returns ​

Promise<void>

Overrides ​

Executable.execute

Defined in ​

core/node/block.ts:22


getNodeTypeName() ​

protected getNodeTypeName(): string

Returns ​

string

Inherited from ​

Executable.getNodeTypeName

Defined in ​

core/node/base.ts:45


injectParsingError() ​

injectParsingError(parsingError): void

Parameters ​

• parsingError: YaksokError<unknown>

Returns ​

void

Defined in ​

core/node/block.ts:55


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/block.ts:43