diff options
Diffstat (limited to 'src/hir/path.hpp')
-rw-r--r-- | src/hir/path.hpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/hir/path.hpp b/src/hir/path.hpp index 05ceab3d..9d66b135 100644 --- a/src/hir/path.hpp +++ b/src/hir/path.hpp @@ -12,6 +12,9 @@ namespace HIR { /// Simple path - Absolute with no generic parameters struct SimplePath { + ::std::string m_crate_name; + ::std::vector< ::std::string> m_components; + SimplePath(): m_crate_name("") { @@ -20,9 +23,11 @@ struct SimplePath m_crate_name( mv$(crate) ) { } - - ::std::string m_crate_name; - ::std::vector< ::std::string> m_components; + SimplePath(::std::string crate, ::std::vector< ::std::string> components): + m_crate_name( mv$(crate) ), + m_components( mv$(components) ) + { + } SimplePath operator+(const ::std::string& s) const; |