GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Go through the nodes and rename variables, or signal if the instruction must be renamed if a removed variable is used. More...
Inherits gd::ExpressionParser2NodeWorker.
Public Member Functions | |
ExpressionVariableReplacer (const gd::Platform &platform_, const gd::ProjectScopedContainers &projectScopedContainers_, const VariablesRenamingChangesetNode &variablesRenamingChangesetRoot_, const std::unordered_set< gd::String > &removedVariableNames_, const gd::VariablesContainer &targetVariablesContainer_, const gd::String &groupName_, const gd::String &forcedInitialObjectName) | |
void | SetForcedInitialVariablesContainer (const gd::VariablesContainer *forcedInitialVariablesContainer_) |
bool | HasDoneRenaming () const |
bool | IsRemovedVariableUsed () const |
Protected Member Functions | |
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 | OnVisitVariableBracketAccessorNode (VariableBracketAccessorNode &node) override |
void | OnVisitIdentifierNode (IdentifierNode &node) override |
void | OnVisitObjectFunctionNameNode (ObjectFunctionNameNode &node) override |
void | OnVisitFunctionCallNode (FunctionCallNode &node) override |
void | OnVisitEmptyNode (EmptyNode &node) override |
Go through the nodes and rename variables, or signal if the instruction must be renamed if a removed variable is used.