summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/typable.hxx
blob: 3af401a7b171a44f66724d01b0a2112ba314599d (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
/**
 ** \file ast/typable.hxx
 ** \brief Inline methods of ast::Typable.
 */

#pragma once

#include <ast/typable.hh>

namespace ast
{
  // FIXME DONE: Some code was deleted here.

  inline void Typable::type_set(const type::Type* typ)
  {
      // Explicitely casting it?
      type_ = typ;
  }

  inline const type::Type* Typable::type_get() const
  {
    return type_;
  }
} // namespace ast