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

#pragma once

#include <ast/call-exp.hh>

namespace ast
{

  inline misc::symbol CallExp::name_get() const { return name_; }
  inline void CallExp::name_set(misc::symbol name) { name_ = name; }

  inline const exps_type& CallExp::args_get() const { return *args_; }
  inline exps_type& CallExp::args_get() { return *args_; }

  // FIXME DONE: Some code was deleted here.
  inline const FunctionDec* CallExp::def_get() const { return def_; }
  inline FunctionDec* CallExp::def_get() { return def_; }
  // FIXME DONE: Some code was deleted here.
  inline void CallExp::def_set(FunctionDec* def) { def_ = def; }

} // namespace ast