summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/type-constructor.cc
blob: 7786864becd59138bf23aefa435438fd0726d4c8 (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
28
29
30
31
/**
 ** \file ast/type-constructor.cc
 ** \brief Implementation of ast::TypeConstructor.
 */

#include <ast/type-constructor.hh>
#include <ast/visitor.hh>

namespace ast
{
  // FIXME DONE: Some code was deleted here.
  TypeConstructor::TypeConstructor()
  : reference_(nullptr)
  {}

  TypeConstructor::~TypeConstructor()
  {
      // IF SOME MEMORY ERRORS HAPPENS, THIS IS THE CULPRIT
      delete reference_;
  }

  void TypeConstructor::accept(ConstVisitor& v) const
  {
      v(this);
  }

  void TypeConstructor::accept(Visitor& v)
  {
      v(this);
  }
} // namespace ast