blob: af6bc6c7db516295f4a443f71b105da28f991066 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/**
** \file ast/seq-exp.cc
** \brief Implementation of ast::SeqExp.
*/
#include <ast/seq-exp.hh>
#include <ast/visitor.hh>
#include <misc/algorithm.hh>
namespace ast
{
SeqExp::SeqExp(const Location& location, exps_type* exps)
: Exp(location)
, exps_(exps)
{}
SeqExp::~SeqExp()
{
misc::deep_clear(*exps_);
delete exps_;
}
void SeqExp::accept(ConstVisitor& v) const { v(*this); }
void SeqExp::accept(Visitor& v) { v(*this); }
} // namespace ast
|