blob: 36f07d7b37853cdb40a8b3daffd10998b7c32c8e (
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/method-dec.cc
** \brief Implementation of ast::MethodDec.
*/
#include <ast/method-dec.hh>
#include <ast/visitor.hh>
namespace ast
{
MethodDec::MethodDec(const Location& location,
misc::symbol name,
VarChunk* formals,
NameTy* result,
Exp* body)
: FunctionDec(location, name, formals, result, body)
{}
void MethodDec::accept(ConstVisitor& v) const { v(*this); }
void MethodDec::accept(Visitor& v) { v(*this); }
} // namespace ast
|