Skip to content

달빛약속 / core/mod / 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:25

Properties

fileName

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

Defined in

core/type/code-file.ts:25


runResult

runResult: ExecuteResult<Block> = null

Defined in

core/type/code-file.ts:22


runtime

runtime: Runtime = null

Defined in

core/type/code-file.ts:23


text

text: string

Defined in

core/type/code-file.ts:25

Accessors

ast

Get Signature

get ast(): Block

Returns

Block

Defined in

core/type/code-file.ts:60


exportedRules

Get Signature

get exportedRules(): Rule[]

Returns

Rule[]

Defined in

core/type/code-file.ts:80


functionDeclareRanges

Get Signature

get functionDeclareRanges(): FunctionDeclareRangesByType

Returns

FunctionDeclareRangesByType

Defined in

core/type/code-file.ts:68


mounted

Get Signature

get mounted(): boolean

Returns

boolean

Defined in

core/type/code-file.ts:31


tokens

Get Signature

get tokens(): Token[]

Returns

Token[]

Defined in

core/type/code-file.ts:35

Methods

mount()

mount(runtime): void

Parameters

runtime

Runtime

Returns

void

Defined in

core/type/code-file.ts:27


run()

run(): Promise<ExecuteResult<Block>>

Returns

Promise<ExecuteResult<Block>>

Defined in

core/type/code-file.ts:102