summaryrefslogtreecommitdiff
path: root/src/ast/expr.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-06-05 16:27:28 +0800
committerJohn Hodge <tpg@mutabah.net>2016-06-05 16:27:28 +0800
commite3f35882f8240e506e34bb37c8fef1ca34601882 (patch)
treebb77cf090418079e6c405eb6c71fcf1b7f52c696 /src/ast/expr.hpp
parenta0c00721f5b9d79035e522577b0f127df5849cfb (diff)
downloadmrust-e3f35882f8240e506e34bb37c8fef1ca34601882.tar.gz
HIR - Spanned expressions, fixed sections of resolve
Diffstat (limited to 'src/ast/expr.hpp')
-rw-r--r--src/ast/expr.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ast/expr.hpp b/src/ast/expr.hpp
index bddada90..98314824 100644
--- a/src/ast/expr.hpp
+++ b/src/ast/expr.hpp
@@ -33,6 +33,7 @@ public:
void set_pos(Position p) { m_pos = ::std::move(p); }
const Position& get_pos() const { return m_pos; }
+ Span span() const { return m_pos; }
void set_attrs(MetaItems&& mi) {
m_attrs = mv$(mi);