Skip to main content

Class: ASTFunction

Defined in: packages/core/src/ast.ts:51

A language-specific function call node.

Extended by​

Implements​

Constructors​

Constructor​

new ASTFunction(lang, id, args): ASTFunction

Defined in: packages/core/src/ast.ts:52

Parameters​

ParameterTypeDescription
langLowercase<string>Language this function belongs to.
idASTIdentifierIdentifier that resolves to the function implementation.
argsASTNode[]Argument expressions in source order.

Returns​

ASTFunction

Properties​

args​

args: ASTNode[]

Defined in: packages/core/src/ast.ts:58

Argument expressions in source order.


id​

id: ASTIdentifier

Defined in: packages/core/src/ast.ts:56

Identifier that resolves to the function implementation.


lang​

lang: Lowercase<string>

Defined in: packages/core/src/ast.ts:54

Language this function belongs to.

Methods​

accept()​

accept<Ret, Arg>(visitor, arg?): Ret

Defined in: packages/core/src/ast.ts:62

Dispatches this node to the matching method on visitor.

Type Parameters​

Type Parameter
Ret
Arg

Parameters​

ParameterType
visitorASTVisitor<Ret, Arg>
arg?Arg

Returns​

Ret

Implementation of​

ASTNode.accept