GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Find the last parent (i.e: the variables container) of a node representing a variable. More...
#include <ExpressionVariableParentFinder.h>
Inherits gd::ExpressionParser2NodeWorker.
Static Public Member Functions | |
static VariableAndItsParent | GetLastParentOfNode (const gd::Platform &platform, const gd::ProjectScopedContainers &projectScopedContainers, gd::ExpressionNode &node) |
Protected Member Functions | |
ExpressionVariableParentFinder (const gd::Platform &platform_, const gd::ProjectScopedContainers &projectScopedContainers_) | |
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 | OnVisitVariableBracketAccessorNode (VariableBracketAccessorNode &node) override |
void | OnVisitFunctionCallNode (FunctionCallNode &functionCall) override |
Find the last parent (i.e: the variables container) of a node representing a variable.
Useful for completions, to know which variables can be entered in a node.