memgraph/cypher/ast/property.hpp
2015-08-30 01:12:46 +02:00

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