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

#include <ast/simple-var.hh>
#include <ast/visitor.hh>

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

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

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