summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/var-dec.hxx
blob: c96c3f49204bcdb41a405d09d5fc5ffe1e4bb7a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 ** \file ast/var-dec.hxx
 ** \brief Inline methods of ast::VarDec.
 */

#pragma once

#include <ast/var-dec.hh>

namespace ast
{

  inline const NameTy* VarDec::type_name_get() const { return type_name_; }
  inline NameTy* VarDec::type_name_get() { return type_name_; }

  inline const Exp* VarDec::init_get() const { return init_; }
  inline Exp* VarDec::init_get() { return init_; }

} // namespace ast