class Rigor::ModuleGraph::VisibilityMap

Pre-walks a Prism tree once and records each +DefNode+‘s effective visibility based on the running +public+ / +protected+ / +private+ marker calls inside its enclosing class / module body.

The Analyzer’s per-node rules can then look up a visibility in O(1) without re-walking the surrounding body. Built once per file by the plugin’s +node_file_context+ hook.

Limitations (acknowledged):