summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/array-exp.hxx
blob: cab3e8bd2cc58bf922ec9efaa25b64ed64700ccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 ** \file ast/array-exp.hxx
 ** \brief Inline methods of ast::ArrayExp.
 */

#pragma once

#include <ast/array-exp.hh>

namespace ast
{

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

  inline const Exp& ArrayExp::size_get() const { return *size_; }
  inline Exp& ArrayExp::size_get() { return *size_; }

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

} // namespace ast