memgraph/cypher/ast/return.hpp

32 lines
485 B
C++
Raw Normal View History

#pragma once
#include "list.hpp"
#include "identifier.hpp"
#include "distinct.hpp"
namespace ast
{
struct ReturnList : public List<Identifier, ReturnList>
{
using List::List;
};
2015-10-19 01:44:00 +08:00
struct Return : public AstNode<Return>
{
Return(ReturnList* return_list)
: return_list(return_list), distinct(nullptr)
{
}
Return(Distinct* distinct)
: return_list(nullptr), distinct(distinct)
{
}
2015-10-19 01:44:00 +08:00
ReturnList* return_list;
Distinct* distinct;
2015-10-19 01:44:00 +08:00
};
};