blob: 5614e96204de60f2acb58fff7c46d2886ee2e086 (
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/record-ty.cc
** \brief Implementation of ast::RecordTy.
*/
#include <ast/record-ty.hh>
#include <ast/visitor.hh>
#include <misc/algorithm.hh>
namespace ast
{
RecordTy::RecordTy(const Location& location, fields_type* fields)
: Ty(location)
, fields_(fields)
{}
RecordTy::~RecordTy()
{
misc::deep_clear(*fields_);
delete fields_;
}
void RecordTy::accept(ConstVisitor& v) const { v(*this); }
void RecordTy::accept(Visitor& v) { v(*this); }
} // namespace ast
|