Inheritance: EventDispatcher → Node →
This class allows to define multiple overloaded versions of the same function. Depending on the parameters of the function call, the node picks the best-fit overloaded version.
Constructs a new function overloading node.
functionNodes
Array of Fn function definitions.
parametersNodes
A list of parameter nodes.
Array of Fn function definitions.
This node is marked as global.
Default is true.
Overrides: Node#global
A list of parameter nodes.
Returns the candidate function for the current parameters.
builder
The current node builder.
Returns: The candidate function.
This method is overwritten since the node type is inferred from the function's return type.
builder
The current node builder.
Overrides: Node#getNodeType
Returns: The node type.
Sets up the node for the current parameters.
builder
The current node builder.
Overrides: Node#setup
Returns: The setup node.