blob: ca5e983631d7f09f3f5cb544e26a2980f3f2a9b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/**
** \file ast/class-ty.cc
** \brief Implementation of ast::ClassTy.
*/
#include <ast/class-ty.hh>
#include <ast/visitor.hh>
namespace ast
{
ClassTy::ClassTy(const Location& location, NameTy* super, ChunkList* chunks)
: Ty(location)
, super_(super)
, chunks_(chunks)
{}
ClassTy::~ClassTy() { delete chunks_; }
void ClassTy::accept(ConstVisitor& v) const { v(*this); }
void ClassTy::accept(Visitor& v) { v(*this); }
} // namespace ast
|