28 lines
438 B
C++
28 lines
438 B
C++
#ifndef MEMGRAPH_CYPHER_AST_AST_PROPERTY_HPP
|
|
#define MEMGRAPH_CYPHER_AST_AST_PROPERTY_HPP
|
|
|
|
#include "list.hpp"
|
|
#include "identifier.hpp"
|
|
#include "expr.hpp"
|
|
|
|
namespace ast
|
|
{
|
|
|
|
struct Property : public AstNode<Property>
|
|
{
|
|
Property(Identifier* idn, Expr* value)
|
|
: idn(idn), value(value) {}
|
|
|
|
Identifier* idn;
|
|
Expr* value;
|
|
};
|
|
|
|
struct PropertyList : public List<Property, PropertyList>
|
|
{
|
|
using List::List;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|