summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/assign-exp.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'tiger-compiler/src/ast/assign-exp.hxx')
-rw-r--r--tiger-compiler/src/ast/assign-exp.hxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/tiger-compiler/src/ast/assign-exp.hxx b/tiger-compiler/src/ast/assign-exp.hxx
new file mode 100644
index 0000000..afd96ff
--- /dev/null
+++ b/tiger-compiler/src/ast/assign-exp.hxx
@@ -0,0 +1,19 @@
+/**
+ ** \file ast/assign-exp.hxx
+ ** \brief Inline methods of ast::AssignExp.
+ */
+
+#pragma once
+
+#include <ast/assign-exp.hh>
+
+namespace ast
+{
+
+ inline const Var& AssignExp::var_get() const { return *var_; }
+ inline Var& AssignExp::var_get() { return *var_; }
+
+ inline const Exp& AssignExp::exp_get() const { return *exp_; }
+ inline Exp& AssignExp::exp_get() { return *exp_; }
+
+} // namespace ast