diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-30 09:23:07 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-30 09:23:07 +0800 |
commit | 38dbb9be89c0ee0acff26bf80c677691bdcadaf8 (patch) | |
tree | 2e5ec14fcc225a43ad82ce219dad4eb5cfa7fd8f /src/hir/item_path.hpp | |
parent | e97f0afd4aff19e64039e7cbf1047d92bfc8f272 (diff) | |
download | mrust-38dbb9be89c0ee0acff26bf80c677691bdcadaf8.tar.gz |
HIR Resolve UFCS - Handle `Self` in trait impls
Diffstat (limited to 'src/hir/item_path.hpp')
-rw-r--r-- | src/hir/item_path.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir/item_path.hpp b/src/hir/item_path.hpp index 78056064..576c7755 100644 --- a/src/hir/item_path.hpp +++ b/src/hir/item_path.hpp @@ -35,6 +35,9 @@ public: trait(&path) {} + const ::HIR::SimplePath* trait_path() const { return trait; } + const ::HIR::PathParams* trait_args() const { return trait_params; } + ::HIR::SimplePath get_simple_path() const { if( parent ) { assert(name); |