blob: 7265f2461dab6df1b9a29d3990af3bd91da9dd60 (
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/field.cc
** \brief Implementation of ast::Field.
*/
#include <ast/field.hh>
#include <ast/visitor.hh>
namespace ast
{
Field::Field(const Location& location, misc::symbol name, NameTy* type_name)
: Ast(location)
, name_(name)
, type_name_(type_name)
{}
Field::~Field() { delete type_name_; }
void Field::accept(ConstVisitor& v) const { v(*this); }
void Field::accept(Visitor& v) { v(*this); }
} // namespace ast
|