Skip to content

yaksok.tsDocs


yaksok.ts / CodeFile

Class: CodeFile

Constructors

new CodeFile()

ts
new CodeFile(text, fileName): CodeFile

Parameters

text: string

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

Returns

CodeFile

Defined in

src/type/code-file.ts:22

Properties

fileName

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

Defined in

src/type/code-file.ts:22


runResult

ts
runResult: ExecuteResult<Block> = null;

Defined in

src/type/code-file.ts:19


runtime

ts
runtime: Runtime = null;

Defined in

src/type/code-file.ts:20


text

ts
text: string;

Defined in

src/type/code-file.ts:22

Accessors

ast

Get Signature

ts
get ast(): Block
Returns

Block

Defined in

src/type/code-file.ts:40


exportedRules

Get Signature

ts
get exportedRules(): Rule[]
Returns

Rule[]

Defined in

src/type/code-file.ts:58


functionDeclareRanges

Get Signature

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

[number, number][]

Defined in

src/type/code-file.ts:48


mounted

Get Signature

ts
get mounted(): boolean
Returns

boolean

Defined in

src/type/code-file.ts:28


tokens

Get Signature

ts
get tokens(): Token[]
Returns

Token[]

Defined in

src/type/code-file.ts:32

Methods

evaluate()

ts
evaluate(node): ExecuteResult<Evaluable>

Parameters

node: Evaluable

Returns

ExecuteResult<Evaluable>

Defined in

src/type/code-file.ts:91


mount()

ts
mount(runtime): void

Parameters

runtime: Runtime

Returns

void

Defined in

src/type/code-file.ts:24


run()

ts
run(): ExecuteResult<Block>

Returns

ExecuteResult<Block>

Defined in

src/type/code-file.ts:80