diff options
author | John Hodge <tpg@mutabah.net> | 2017-01-14 09:02:10 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-01-14 09:02:10 +0800 |
commit | db01a8a8ae3dab9888d7a734dc07ca513b6f86bc (patch) | |
tree | 2f3a75549eee5378b7ec9aa712f8f26aec9d77b4 /src/hir/hir.hpp | |
parent | 27be955d74e03e5db1c549367f3f784ec535f509 (diff) | |
download | mrust-db01a8a8ae3dab9888d7a734dc07ca513b6f86bc.tar.gz |
HIR - Clean up some manual item searching
Diffstat (limited to 'src/hir/hir.hpp')
-rw-r--r-- | src/hir/hir.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/hir.hpp b/src/hir/hir.hpp index 9b40ad1a..f090c67f 100644 --- a/src/hir/hir.hpp +++ b/src/hir/hir.hpp @@ -442,7 +442,7 @@ public: const ::HIR::Struct& get_struct_by_path(const Span& sp, const ::HIR::SimplePath& path) const; const ::HIR::Union& get_union_by_path(const Span& sp, const ::HIR::SimplePath& path) const; const ::HIR::Enum& get_enum_by_path(const Span& sp, const ::HIR::SimplePath& path) const; - const ::HIR::Module& get_mod_by_path(const Span& sp, const ::HIR::SimplePath& path) const; + const ::HIR::Module& get_mod_by_path(const Span& sp, const ::HIR::SimplePath& path, bool ignore_last_node=false) const; const ::HIR::ValueItem& get_valitem_by_path(const Span& sp, const ::HIR::SimplePath& path, bool ignore_crate_name=false) const; const ::HIR::Function& get_function_by_path(const Span& sp, const ::HIR::SimplePath& path) const; |