summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/function-dec.hxx
blob: b9dda473ad1d7c3291d8ab4eaccf6e12d44c2294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 ** \file ast/function-dec.hxx
 ** \brief Inline methods of ast::FunctionDec.
 */

#pragma once

#include <ast/function-dec.hh>

namespace ast
{

  inline const VarChunk& FunctionDec::formals_get() const { return *formals_; }
  inline VarChunk& FunctionDec::formals_get() { return *formals_; }

  inline const NameTy* FunctionDec::result_get() const { return result_; }
  inline NameTy* FunctionDec::result_get() { return result_; }

  inline const Exp* FunctionDec::body_get() const { return body_; }
  inline Exp* FunctionDec::body_get() { return body_; }
  inline void FunctionDec::body_set(Exp* body) { body_ = body; }

} // namespace ast