diff options
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(); } |