diff options
author | John Hodge <tpg@mutabah.net> | 2015-04-03 15:19:55 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-04-03 15:19:55 +0800 |
commit | 38c943136d2ebebceb835a8f5689d3805b3709b1 (patch) | |
tree | 68b5ea9837db05f6f55b761a4acbd6cb529a7b86 /src/types.hpp | |
parent | 8fb0812c4c43f08a51a74e96c369c4ee56616e9a (diff) | |
download | mrust-38c943136d2ebebceb835a8f5689d3805b3709b1.tar.gz |
Save #[] attrs with item, ready for post-processing derive()
Diffstat (limited to 'src/types.hpp')
-rw-r--r-- | src/types.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/types.hpp b/src/types.hpp index 7c026500..500e03f7 100644 --- a/src/types.hpp +++ b/src/types.hpp @@ -182,6 +182,7 @@ public: bool is_tuple() const { return m_class == TUPLE; }
const ::std::string& type_param() const { assert(is_type_param()); return m_path[0].name(); }
AST::Path& path() { assert(is_path()); return m_path; }
+
const AST::Path& path() const { assert(is_path()); return m_path; }
::std::vector<TypeRef>& sub_types() { return m_inner_types; }
const ::std::vector<TypeRef>& sub_types() const { return m_inner_types; }
|