summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/ast.hxx
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
commit967be9e750221ab2ab783f95df79bb26d290a45e (patch)
tree6802900a5e975f9f68b169f0f503f040056d6952 /tiger-compiler/src/ast/ast.hxx
add: added projectsHEADmain
Diffstat (limited to 'tiger-compiler/src/ast/ast.hxx')
-rw-r--r--tiger-compiler/src/ast/ast.hxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/tiger-compiler/src/ast/ast.hxx b/tiger-compiler/src/ast/ast.hxx
new file mode 100644
index 0000000..963aaba
--- /dev/null
+++ b/tiger-compiler/src/ast/ast.hxx
@@ -0,0 +1,18 @@
+/**
+ ** \file ast/ast.hxx
+ ** \brief Inline methods of ast::Ast.
+ */
+
+#pragma once
+
+#include <ast/ast.hh>
+
+namespace ast
+{
+ inline const Location& Ast::location_get() const { return location_; }
+ inline void Ast::location_set(const Location& location)
+ {
+ location_ = location;
+ }
+
+} // namespace ast