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

#pragma once

#include <ast/method-call-exp.hh>

namespace ast
{

  inline const Var& MethodCallExp::object_get() const { return *object_; }
  inline Var& MethodCallExp::object_get() { return *object_; }

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