32 lines
485 B
C++
32 lines
485 B
C++
#pragma once
|
|
|
|
#include "list.hpp"
|
|
#include "identifier.hpp"
|
|
#include "distinct.hpp"
|
|
|
|
namespace ast
|
|
{
|
|
|
|
struct ReturnList : public List<Identifier, ReturnList>
|
|
{
|
|
using List::List;
|
|
};
|
|
|
|
struct Return : public AstNode<Return>
|
|
{
|
|
Return(ReturnList* return_list)
|
|
: return_list(return_list), distinct(nullptr)
|
|
{
|
|
}
|
|
|
|
Return(Distinct* distinct)
|
|
: return_list(nullptr), distinct(distinct)
|
|
{
|
|
}
|
|
|
|
ReturnList* return_list;
|
|
Distinct* distinct;
|
|
};
|
|
|
|
};
|