summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/type/method.hxx
blob: d0262527a623102af1b8e2e7cd84530b8118ece3 (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
27
/**
 ** \file type/method.hxx
 ** \brief Inline methods for type::Method.
 */
#pragma once

namespace type
{
  inline misc::symbol Method::name_get() const { return name_; }

  inline const Class* Method::owner_get() const { return owner_; }

  inline const Type& Method::type_get() const
  {
    // FIXME DONE: Some code was deleted here.
    return *def_->type_get();
  }

  inline const ast::MethodDec* Method::def_get() const { return def_; }

  inline ast::MethodDec* Method::def_get() { return def_; }

  inline void Method::name_set(misc::symbol name) { name_ = name; }

  inline void Method::def_set(ast::MethodDec* def) { def_ = def; }

} // namespace type