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