summaryrefslogtreecommitdiff
path: root/src/ast/ast.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/ast.hpp')
-rw-r--r--src/ast/ast.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp
index 9a640024..341b860e 100644
--- a/src/ast/ast.hpp
+++ b/src/ast/ast.hpp
@@ -50,6 +50,8 @@ public:
const ::std::string& name() const { return m_name; }
const TypeRef& get_default() const { return m_default; }
+ TypeRef& get_default() { return m_default; }
+
bool is_type() const { return m_class == TYPE; }
friend ::std::ostream& operator<<(::std::ostream& os, const TypeParam& tp);
@@ -278,6 +280,9 @@ public:
const TypeRef& type() const { return m_type; }
const Expr& value() const { return m_value; }
+ TypeRef& type() { return m_type; }
+ Expr& value() { return m_value; }
+
SERIALISABLE_PROTOTYPES();
};