blob: 251f77648541716cdf098af867fb328574ad2c5b (
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
|
/**
** \file ast/assert-exp.cc
** \brief Implementation of ast::AssertExp.
*/
#include <ast/assert-exp.hh>
#include <ast/visitor.hh>
namespace ast
{
AssertExp::AssertExp(const Location& location, Exp* condition)
: Exp(location)
, cond_{condition}
{}
AssertExp::~AssertExp()
{
delete cond_;
}
void AssertExp::accept(ConstVisitor& v) const { v(*this); }
void AssertExp::accept(Visitor& v) { v(*this); }
} // namespace ast
|