GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Static Public Member Functions | Protected Member Functions | List of all members
gd::ExpressionVariablePathFinder Class Reference

Find a variable path from an expression node. More...

#include <ExpressionVariablePathFinder.h>

Inherits gd::ExpressionParser2NodeWorker.

Static Public Member Functions

static VariableAndItsParent GetLastParentOfNode (const gd::Platform &platform, const gd::ProjectScopedContainers &projectScopedContainers, gd::ExpressionNode &node)
 
static const gd::Variable::Type GetVariableType (const gd::Platform &platform, const gd::ProjectScopedContainers &projectScopedContainers, gd::ExpressionNode &node, const gd::String &objectName)
 
static const gd::Variable::Type GetArrayVariableType (const gd::Platform &platform, const gd::ProjectScopedContainers &projectScopedContainers, gd::ExpressionNode &node, const gd::String &objectName)
 

Protected Member Functions

 ExpressionVariablePathFinder (const gd::Platform &platform_, const gd::ProjectScopedContainers &projectScopedContainers_, const gd::String &parameterType_, gd::String &objectName_, const gd::ExpressionNode *lastNodeToCheck_=nullptr)
 
void OnVisitVariableBracketAccessorNode (VariableBracketAccessorNode &node) override
 
void OnVisitSubExpressionNode (SubExpressionNode &node) override
 
void OnVisitOperatorNode (OperatorNode &node) override
 
void OnVisitUnaryOperatorNode (UnaryOperatorNode &node) override
 
void OnVisitNumberNode (NumberNode &node) override
 
void OnVisitTextNode (TextNode &node) override
 
void OnVisitVariableNode (VariableNode &node) override
 
void OnVisitVariableAccessorNode (VariableAccessorNode &node) override
 
void OnVisitIdentifierNode (IdentifierNode &node) override
 
void OnVisitEmptyNode (EmptyNode &node) override
 
void OnVisitObjectFunctionNameNode (ObjectFunctionNameNode &node) override
 
void OnVisitFunctionCallNode (FunctionCallNode &functionCall) override
 
void FindVariableFor (const gd::String &identifier, gd::String *childIdentifier=nullptr)
 

Detailed Description

Find a variable path from an expression node.

See also
gd::ExpressionParser2

The documentation for this class was generated from the following files: