GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Public Member Functions | Public Attributes | List of all members
gd::VariableNode Struct Reference

A variable, or object variable, with bracket accessor or at least 2 "dot" accessors. More...

#include <ExpressionParser2Node.h>

Inherits gd::FunctionCallOrObjectFunctionNameOrEmptyNode.

Public Member Functions

 VariableNode (const gd::String &name_)
 
virtual void Visit (ExpressionParser2NodeWorker &worker)
 

Public Attributes

gd::String name
 
std::unique_ptr< VariableAccessorOrVariableBracketAccessorNodechild
 
ExpressionParserLocation nameLocation
 
- Public Attributes inherited from gd::ExpressionNode
std::unique_ptr< ExpressionParserDiagnosticdiagnostic
 
ExpressionParserLocation location
 
ExpressionNodeparent
 

Detailed Description

A variable, or object variable, with bracket accessor or at least 2 "dot" accessors.

Example: MyVariable["MyChildren"] or MyVariable.MyChildren.MyGrandChildren. Example: MyObject["MyVariable"] or MyObject.MyVariable.MyChildren.

Other cases like "MyVariable" or "MyVariable.MyChildren" are IdentifierNode to allow handling ambiguities.

See also
gd::IdentifierNode
gd::VariableAccessorNode
gd::VariableBracketAccessorNode

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