mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-03 16:58:46 +00:00
7be2d2f008
Definition::visibility was implemented in a rather roundabout way -- by asking the parent module about the effective visibility. This is problematic for a couple of reasons: * first, it doesn't work for local items * second, asking module about visibility of a child is a linear operation (that's a problem in itself, tracked in #9378) Instead, lets ask the declared visibility directly, we have all the code for it, and need only to actually us it. |
||
---|---|---|
.. | ||
semantics | ||
attrs.rs | ||
db.rs | ||
diagnostics.rs | ||
display.rs | ||
from_id.rs | ||
has_source.rs | ||
lib.rs | ||
semantics.rs | ||
source_analyzer.rs |