From a735e91e2f1ff8c688e9f8403860f8ef5bd74606 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 23 Feb 2016 18:29:22 +1100 Subject: Parse - Expression attributes --- src/ast/expr.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ast') 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; } -- cgit v1.2.3