Skip to content

달빛약속 / CodeFile

Class: CodeFile

Constructors

new CodeFile()

new CodeFile(text, fileName): CodeFile

Parameters

text

string

fileName

string = '<이름 없음>'

Returns

CodeFile

Defined in

core/type/code-file.ts:23

Properties

fileName

fileName: string = '<이름 없음>'

Defined in

core/type/code-file.ts:23


runResult

runResult: ExecuteResult<Block> = null

Defined in

core/type/code-file.ts:20


runtime

runtime: Runtime = null

Defined in

core/type/code-file.ts:21


text

text: string

Defined in

core/type/code-file.ts:23

Accessors

ast

Get Signature

get ast(): Block

Returns

Block

Defined in

core/type/code-file.ts:52


exportedRules

Get Signature

get exportedRules(): Rule[]

Returns

Rule[]

Defined in

core/type/code-file.ts:70


functionDeclareRanges

Get Signature

get functionDeclareRanges(): [number, number][]

Returns

[number, number][]

Defined in

core/type/code-file.ts:60


mounted

Get Signature

get mounted(): boolean

Returns

boolean

Defined in

core/type/code-file.ts:29


tokens

Get Signature

get tokens(): Token[]

Returns

Token[]

Defined in

core/type/code-file.ts:33

Methods

mount()

mount(runtime): void

Parameters

runtime

Runtime

Returns

void

Defined in

core/type/code-file.ts:25


run()

run(): Promise<ExecuteResult<Block>>

Returns

Promise<ExecuteResult<Block>>

Defined in

core/type/code-file.ts:92