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

#include <ast/name-ty.hh>
#include <ast/visitor.hh>

namespace ast
{
  NameTy::NameTy(const Location& location, misc::symbol name)
    : Ty(location)
    , name_(name)
  {}

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

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