diff options
| author | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
|---|---|---|
| committer | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
| commit | 967be9e750221ab2ab783f95df79bb26d290a45e (patch) | |
| tree | 6802900a5e975f9f68b169f0f503f040056d6952 /tiger-compiler/src/ast/function-dec.hxx | |
Diffstat (limited to 'tiger-compiler/src/ast/function-dec.hxx')
| -rw-r--r-- | tiger-compiler/src/ast/function-dec.hxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tiger-compiler/src/ast/function-dec.hxx b/tiger-compiler/src/ast/function-dec.hxx new file mode 100644 index 0000000..b9dda47 --- /dev/null +++ b/tiger-compiler/src/ast/function-dec.hxx @@ -0,0 +1,23 @@ +/** + ** \file ast/function-dec.hxx + ** \brief Inline methods of ast::FunctionDec. + */ + +#pragma once + +#include <ast/function-dec.hh> + +namespace ast +{ + + inline const VarChunk& FunctionDec::formals_get() const { return *formals_; } + inline VarChunk& FunctionDec::formals_get() { return *formals_; } + + inline const NameTy* FunctionDec::result_get() const { return result_; } + inline NameTy* FunctionDec::result_get() { return result_; } + + inline const Exp* FunctionDec::body_get() const { return body_; } + inline Exp* FunctionDec::body_get() { return body_; } + inline void FunctionDec::body_set(Exp* body) { body_ = body; } + +} // namespace ast |
