summaryrefslogtreecommitdiff
path: root/src/hir/item_path.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/item_path.hpp')
-rw-r--r--src/hir/item_path.hpp3
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);