summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/field-init.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'tiger-compiler/src/ast/field-init.hxx')
-rw-r--r--tiger-compiler/src/ast/field-init.hxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/tiger-compiler/src/ast/field-init.hxx b/tiger-compiler/src/ast/field-init.hxx
new file mode 100644
index 0000000..1a895b7
--- /dev/null
+++ b/tiger-compiler/src/ast/field-init.hxx
@@ -0,0 +1,19 @@
+/**
+ ** \file ast/field-init.hxx
+ ** \brief Inline methods of ast::FieldInit.
+ */
+
+#pragma once
+
+#include <ast/field-init.hh>
+
+namespace ast
+{
+
+ inline misc::symbol FieldInit::name_get() const { return name_; }
+ inline void FieldInit::name_set(misc::symbol name) { name_ = name; }
+
+ inline const Exp& FieldInit::init_get() const { return *init_; }
+ inline Exp& FieldInit::init_get() { return *init_; }
+
+} // namespace ast