Hierarchy M11: who instantiates X, what X instantiates

LSP callHierarchy with modules as the nodes: prepare on a declaration or
any instantiation, incoming grouped by instantiating module with every
site as a fromRange, outgoing one call per distinct instantiated module.
The instantiation walk moved out of inlay hints into a shared module
with the owning module threaded through - inlay's 34 untouched tests
prove the factoring changed nothing. A substring prefilter skips 834 of
860 corpus files before parsing (56ms incoming on a real module;
the prefilter-defeating worst case is documented at ~206ms). ifdef arms
both count, disclosed; incoming/outgoing consistency QA-verified.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-08-25 01:15:38 -07:00
1 parent e546d86677
commit a96c908a3e
11 files changed
+2019 -70

No files matched your search

+2 -1
View File
@@ -164,7 +164,7 @@ built but nothing consumes yet. Ordered by value ÷ cost:
and the define table stays per-file. Document links (or definition) on
include lines, resolved through the filelist's incdirs, and a
cross-file define-table lookup along the include graph.
- [ ] **Module hierarchy** — "who instantiates X / what does X
- [x] **Module hierarchy** — "who instantiates X / what does X
instantiate", as LSP callHierarchy (modules as the nodes) or a custom
request the extension renders; the index already knows both directions.
- [ ] **Semantic lint rules** — unused-signal, undriven-net,
@@ -265,6 +265,7 @@ commit — in order:
- [x] M8 inlay-hints — done, one QA HIGH fixed in-round, reviewed
- [x] M9 file-watching — done, QA clean first pass, reviewed
- [x] M10 include-nav — done, one QA HIGH reworked, reviewed
- [x] M11 hierarchy — done, QA doc-fixes in-round, reviewed
## Work log