NCall

NodeAstNodeNExprloreline.NCall (Class)

Represents a function call expression in the AST.

Instance Members

target: NExpr

The expression being called.


args: Array<NExpr>

Array of argument expressions passed to the call.


type(): String
Returns
String

each(handleNode: Function): Void
Name Type
handleNode Function

toJson(): Dynamic

Converts the call expression to a JSON representation.

Returns Description
Dynamic Dynamic object containing call data

new(id: NodeId, pos: Position, target: NExpr, args: Array<NExpr>, ?leadingComments: Array<Comment>, ?trailingComments: Array<Comment>): Void

Creates a new call expression node.

Name Type Default Description
id NodeId
pos Position Position in source where this call appears
target NExpr Expression being called
args Array<NExpr> Array of argument expressions
leadingComments Array<Comment> (optional) Optional comments before the call
trailingComments Array<Comment> (optional) Optional comments after the call

Metadata

Name Parameters
:hxGen -