*Inheritance: EventDispatcher → Node →*

# FunctionCallNode

This module represents the call of a [FunctionNode](FunctionNode.html). Developers are usually not confronted with this module since they use the predefined TSL syntax `wgslFn` and `glslFn` which encapsulate this logic.

## Constructor

### new FunctionCallNode( functionNode : FunctionNode, parameters : Object.<string, Node> )

Constructs a new function call node.

**functionNode**

The function node.

Default is `null`.

**parameters**

The parameters for the function call.

Default is `{}`.

## Properties

### .functionNode : FunctionNode

The function node.

Default is `null`.

### .parameters : Object.<string, Node>

The parameters of the function call.

Default is `{}`.

## Methods

### .generateNodeType( builder : NodeBuilder ) : string

Returns the type of this function call node.

**builder**

The current node builder.

**Overrides:** [Node#generateNodeType](Node.html#generateNodeType)

**Returns:** The type of this node.

### .getMemberType( builder : NodeBuilder, name : string ) : string

Returns the function node of this function call node.

**builder**

The current node builder.

**name**

The name of the member.

**Overrides:** [Node#getMemberType](Node.html#getMemberType)

**Returns:** The type of the member.

### .getParameters() : Object.<string, Node>

Returns the parameters of the function call node.

**Returns:** The parameters of this node.

### .setParameters( parameters : Object.<string, Node> ) : FunctionCallNode

Sets the parameters of the function call node.

**parameters**

The parameters to set.

**Returns:** A reference to this node.

## Source

[src/nodes/code/FunctionCallNode.js](https://github.com/mrdoob/three.js/blob/master/src/nodes/code/FunctionCallNode.js)