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

#pragma once

#include <ast/subscript-var.hh>

namespace ast
{

  inline const Var& SubscriptVar::var_get() const { return *var_; }
  inline Var& SubscriptVar::var_get() { return *var_; }

  inline const Exp& SubscriptVar::index_get() const { return *index_; }
  inline Exp& SubscriptVar::index_get() { return *index_; }

} // namespace ast