Class: ASTOperator
Defined in: packages/core/src/ast.ts:34
A language-specific operator application node (infix, prefix, or postfix).
Implements
Constructors
Constructor
new ASTOperator(
lang,id,operands):ASTOperator
Defined in: packages/core/src/ast.ts:35
Parameters
| Parameter | Type | Description |
|---|---|---|
lang | Lowercase<string> | Language this operator belongs to. |
id | ASTIdentifier | Identifier that resolves to the operator implementation. |
operands | ASTNode[] | Operand expressions in source order. |
Returns
ASTOperator
Properties
id
id:
ASTIdentifier
Defined in: packages/core/src/ast.ts:39
Identifier that resolves to the operator implementation.
lang
lang:
Lowercase<string>
Defined in: packages/core/src/ast.ts:37
Language this operator belongs to.
operands
operands:
ASTNode[]
Defined in: packages/core/src/ast.ts:41
Operand expressions in source order.
Methods
accept()
accept<
Ret,Arg>(visitor,arg?):Ret
Defined in: packages/core/src/ast.ts:45
Dispatches this node to the matching method on visitor.
Type Parameters
| Type Parameter |
|---|
Ret |
Arg |
Parameters
| Parameter | Type |
|---|---|
visitor | ASTVisitor<Ret, Arg> |
arg? | Arg |
Returns
Ret