summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/simple-var.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'tiger-compiler/src/ast/simple-var.hxx')
-rw-r--r--tiger-compiler/src/ast/simple-var.hxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/tiger-compiler/src/ast/simple-var.hxx b/tiger-compiler/src/ast/simple-var.hxx
new file mode 100644
index 0000000..e89b622
--- /dev/null
+++ b/tiger-compiler/src/ast/simple-var.hxx
@@ -0,0 +1,20 @@
+/**
+ ** \file ast/simple-var.hxx
+ ** \brief Inline methods of ast::SimpleVar.
+ */
+
+#pragma once
+
+#include <ast/simple-var.hh>
+
+namespace ast
+{
+
+ inline misc::symbol SimpleVar::name_get() const { return name_; }
+ inline void SimpleVar::name_set(misc::symbol name) { name_ = name; }
+
+ inline const VarDec* SimpleVar::def_get() const { return def_; }
+ inline VarDec* SimpleVar::def_get() { return def_; }
+ inline void SimpleVar::def_set(VarDec* def) { def_ = def; }
+
+} // namespace ast