GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
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 ¶meterType_, 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) |
Find a variable path from an expression node.