summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/nil-exp.cc
blob: f51c4429f3a9249e0d46257e4a63ba7e2a3cb26b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 ** \file ast/nil-exp.cc
 ** \brief Implementation of ast::NilExp.
 */

#include <ast/nil-exp.hh>
#include <ast/visitor.hh>

namespace ast
{
  NilExp::NilExp(const Location& location)
    : Exp(location)
    , TypeConstructor()
  {}

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

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