GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Public Member Functions | Public Attributes | List of all members
gd::FunctionCallNode Struct Reference

A function call node (either free function, object function or object behavior function). For example: "MyExtension::MyFunction(1, 2)", "MyObject.Function()" or "MyObject.Physics::LinearVelocity()". More...

#include <ExpressionParser2Node.h>

Inherits gd::FunctionCallOrObjectFunctionNameOrEmptyNode.

Public Member Functions

 FunctionCallNode (const gd::String &functionName_)
 Construct a free function call node.
 
 FunctionCallNode (const gd::String &objectName_, const gd::String &functionName_)
 Construct an object function call node.
 
 FunctionCallNode (const gd::String &objectName_, const gd::String &behaviorName_, const gd::String &functionName_)
 Construct a behavior function call node.
 
virtual void Visit (ExpressionParser2NodeWorker &worker)
 

Public Attributes

gd::String objectName
 
gd::String behaviorName
 
std::vector< std::unique_ptr< ExpressionNode > > parameters
 
gd::String functionName
 
ExpressionParserLocation functionNameLocation
 Location of the function name.
 
ExpressionParserLocation objectNameLocation
 Location of the object name, if any.
 
ExpressionParserLocation objectNameDotLocation
 Location of the "." after the object name.
 
ExpressionParserLocation behaviorNameLocation
 Location of the behavior name, if any.
 
ExpressionParserLocation behaviorNameNamespaceSeparatorLocation
 
ExpressionParserLocation openingParenthesisLocation
 Location of the "(".
 
ExpressionParserLocation closingParenthesisLocation
 Location of the ")".
 
- Public Attributes inherited from gd::ExpressionNode
std::unique_ptr< ExpressionParserErrordiagnostic
 
ExpressionParserLocation location
 
ExpressionNodeparent
 

Detailed Description

A function call node (either free function, object function or object behavior function). For example: "MyExtension::MyFunction(1, 2)", "MyObject.Function()" or "MyObject.Physics::LinearVelocity()".

Member Data Documentation

◆ behaviorNameNamespaceSeparatorLocation

ExpressionParserLocation gd::FunctionCallNode::behaviorNameNamespaceSeparatorLocation

Location of the "::" separator, if any.


The documentation for this struct was generated from the following file: