rust-analyzer/crates
bors[bot] 8a73a8937d
Merge #3707
3707: Add ItemScope::visibility_of r=matklad a=edwin0cheng

~This PR implements `HasVisibility` for various constructs and change `Definition::search_scope` to use `Visibility` directly instead of depends on ad-hoc string parsing.~

This PR added `visibility_of`  in `ItemScope` and `Module` and use it directly directly instead of depends on ad-hoc string parsing.

And also add a FIXME to indicate that there is a bug which do not search child-submodules in other files recursively in `Definition::search_scope`.

I will submit another PR to fix that bug after this is merged.

cc @flodiebold 

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-03-25 08:09:26 +00:00
..
ra_arena
ra_assists
ra_cargo_watch
ra_cfg
ra_db
ra_fmt
ra_hir
ra_hir_def
ra_hir_expand
ra_hir_ty
ra_ide
ra_ide_db
ra_mbe
ra_parser
ra_prof
ra_project_model
ra_syntax
ra_text_edit
ra_tt
rust-analyzer
test_utils