summaryrefslogtreecommitdiff
path: root/src/ast/expr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/expr.hpp')
-rw-r--r--src/ast/expr.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ast/expr.hpp b/src/ast/expr.hpp
index 96b83381..2b2a89f5 100644
--- a/src/ast/expr.hpp
+++ b/src/ast/expr.hpp
@@ -22,6 +22,7 @@ class ExprNode:
public Serialisable
{
TypeRef m_res_type;
+ MetaItems m_attrs;
Position m_pos;
public:
virtual ~ExprNode() = 0;
@@ -32,6 +33,10 @@ public:
void set_pos(Position p) { m_pos = ::std::move(p); }
const Position& get_pos() const { return m_pos; }
+
+ void set_attrs(MetaItems&& mi) {
+ m_attrs = mv$(mi);
+ }
TypeRef& get_res_type() { return m_res_type; }