summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/type/array.cc
blob: 1cf51ca3b5a22ae07b74d2ea9812241ffa279af5 (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
/**
 ** \file type/array.cc
 ** \brief Implementation for type/array.hh.
 */

#include <type/array.hh>
#include <type/visitor.hh>

namespace type
{

  // FIXME DONE: Some code was deleted here.

  Array::Array(const Type* const element_type)
    : element_type_(element_type)
  {}

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

  void Array::accept(Visitor& v)
  {
    v(*this);
  }

} // namespace type