Skip to content

달빛약속 / PlusOperator

Class: PlusOperator ​

Extends ​

Constructors ​

PlusOperator() ​

PlusOperator(tokens): PlusOperator

Parameters ​

• tokens: Token[]

Returns ​

PlusOperator

Overrides ​

Operator.constructor

Defined in ​

core/node/operator.ts:28

Properties ​

subnode ​

subnode: unknown

Inherited from ​

Operator.subnode

Defined in ​

core/node/base.ts:29


tokens ​

tokens: Token[]

Inherited from ​

Operator.tokens

Defined in ​

core/node/operator.ts:28


value ​

value: string

Inherited from ​

Operator.value

Defined in ​

core/node/base.ts:186


accepts ​

static accepts: NodeCapability[] = []

Inherited from ​

Operator.accepts

Defined in ​

core/node/base.ts:33


friendlyName ​

static friendlyName: string = '더하기(+)'

Overrides ​

Operator.friendlyName

Defined in ​

core/node/operator.ts:25


sign ​

static sign: string = '+'

Defined in ​

core/node/operator.ts:26

Methods ​

call() ​

call(left, right): Promise<ListValue | NumberValue | StringValue>

Parameters ​

• left

• right

Returns ​

Promise<ListValue | NumberValue | StringValue>

Overrides ​

Operator.call

Defined in ​

core/node/operator.ts:36


getNodeTypeName() ​

protected getNodeTypeName(): string

Returns ​

string

Inherited from ​

Operator.getNodeTypeName

Defined in ​

core/node/base.ts:45


toPrint() ​

toPrint(): string

Returns ​

string

Overrides ​

Operator.toPrint

Defined in ​

core/node/operator.ts:32


validate() ​

validate(): YaksokError[]

Returns ​

YaksokError[]

Inherited from ​

Operator.validate

Defined in ​

core/node/base.ts:203