GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
gd::ExpressionValidator Class Reference

Validate that an expression is properly written by returning any error attached to the nodes during parsing. More...

#include <ExpressionValidator.h>

Inherits gd::ExpressionParser2NodeWorker.

Public Member Functions

const std::vector
< ExpressionParserDiagnostic * > & 
GetErrors ()
 Get all the errors. More...
 

Static Public Member Functions

static bool HasNoErrors (gd::ExpressionNode &node)
 Helper function to check if a given node does not contain any error.
 

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 OnVisitFunctionNode (FunctionNode &node) override
 
void OnVisitEmptyNode (EmptyNode &node) override
 

Detailed Description

Validate that an expression is properly written by returning any error attached to the nodes during parsing.

See also
gd::ExpressionParser2

Member Function Documentation

const std::vector<ExpressionParserDiagnostic*>& gd::ExpressionValidator::GetErrors ( )
inline

Get all the errors.

No errors means that the expression is valid.


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