diff options
author | John Hodge <tpg@mutabah.net> | 2016-02-23 18:29:22 +1100 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-02-23 18:29:22 +1100 |
commit | a735e91e2f1ff8c688e9f8403860f8ef5bd74606 (patch) | |
tree | fe35dae14ae1f570b74dac593c9693aa59b84803 /src/ast/expr.hpp | |
parent | 6325fd13e77e80dc24bfea7f8fff5fad45861295 (diff) | |
download | mrust-a735e91e2f1ff8c688e9f8403860f8ef5bd74606.tar.gz |
Parse - Expression attributes
Diffstat (limited to 'src/ast/expr.hpp')
-rw-r--r-- | src/ast/expr.hpp | 5 |
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; } |