Skip to content

yaksok.tsDocs


yaksok.ts / DeclareFunction

Class: DeclareFunction

Extends

Constructors

new DeclareFunction()

ts
new DeclareFunction(props): DeclareFunction

Parameters

props

props.body: Block

props.name: string

Returns

DeclareFunction

Overrides

Executable.constructor

Defined in

src/node/function.ts:19

Properties

body

ts
body: Block;

Defined in

src/node/function.ts:17


name

ts
name: string;

Defined in

src/node/function.ts:16


position?

ts
optional position: Position;

Inherited from

Executable.position

Defined in

src/node/base.ts:16


friendlyName

ts
static friendlyName: string = '새 약속 만들기';

Overrides

Executable.friendlyName

Defined in

src/node/function.ts:14

Methods

execute()

ts
execute(scope): void

Parameters

scope: Scope

Returns

void

Overrides

Executable.execute

Defined in

src/node/function.ts:26


getReturnValue()

ts
getReturnValue(scope): ValueTypes

Parameters

scope: Scope

Returns

ValueTypes

Defined in

src/node/function.ts:44


run()

ts
run(scope, _callFrame): ValueTypes

Parameters

scope: Scope

_callFrame: CallFrame

Returns

ValueTypes

Defined in

src/node/function.ts:30


toJSON()

ts
toJSON(): object

Returns

object

Inherited from

Executable.toJSON

Defined in

src/node/base.ts:19


toPrint()

ts
toPrint(): string

Returns

string

Inherited from

Executable.toPrint

Defined in

src/node/base.ts:36