diff options
author | John Hodge <tpg@mutabah.net> | 2016-03-08 11:41:47 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-03-08 11:41:47 +0800 |
commit | d631637ae467843ffd969c6003b6c187f498ef5c (patch) | |
tree | 71a1908002656186152f8421e6c3a52aca846e31 /src/ast/path.hpp | |
parent | 8438c45edf9ee1b561ccfec304d2a36b0671e311 (diff) | |
download | mrust-d631637ae467843ffd969c6003b6c187f498ef5c.tar.gz |
Spans on MacroInvocation, re-enable span in ERROR reporting
Diffstat (limited to 'src/ast/path.hpp')
-rw-r--r-- | src/ast/path.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ast/path.hpp b/src/ast/path.hpp index 1260ece3..4fc08bb1 100644 --- a/src/ast/path.hpp +++ b/src/ast/path.hpp @@ -130,6 +130,7 @@ public: private: /// The crate defining the root of this path (used for path resolution) ::std::string m_crate; + Span m_span; public: Class m_class; @@ -197,6 +198,9 @@ public: } + const Span& span() const { + return m_span; + } Class::Tag class_tag() const { return m_class.tag(); } |