GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 &type_, std::vector< std::unique_ptr< ExpressionNode >> parameters_, const ExpressionMetadata &expressionMetadata_, const gd::String &functionName_)
 
 FunctionCallNode (const gd::String &type_, const gd::String &objectName_, std::vector< std::unique_ptr< ExpressionNode >> parameters_, const ExpressionMetadata &expressionMetadata_, const gd::String &functionName_)
 
 FunctionCallNode (const gd::String &type_, const gd::String &objectName_, const gd::String &behaviorName_, std::vector< std::unique_ptr< ExpressionNode >> parameters_, const ExpressionMetadata &expressionMetadata_, const gd::String &functionName_)
 
virtual void Visit (ExpressionParser2NodeWorker &worker)
 

Public Attributes

gd::String type
 
gd::String objectName
 
gd::String behaviorName
 
std::vector< std::unique_ptr
< ExpressionNode > > 
parameters
 
const ExpressionMetadataexpressionMetadata
 
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
< ExpressionParserDiagnostic
diagnostic
 
ExpressionParserLocation location
 

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

ExpressionParserLocation gd::FunctionCallNode::behaviorNameNamespaceSeparatorLocation

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


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