A multi-line module instantiation now answers folding ranges, so VS Code's
sticky scroll pins it (TODO §72, docs/features/instance-folding): one range
from the module-type line, and one more per instance from the line its name
is on when that is a later line, so both `aes_control_fsm #(` and
`) u_aes_control_fsm (` stay pinned inside the connection list. The closing
`);` line stays visible.
- folding/instances.rs: what is an instantiation comes from
vlog_semantic::instantiations::sites; where it closes is re-read from the
tokens, and a statement whose tokens are not exactly that shape folds
nothing.
- folding.rs: in_answer_order is a stable sort by start line over scopes,
branches, instances; every earlier fold is unchanged and first on a shared
start line (0.66.0 against this tree on 4 933 files: identical once the
instance folds are removed).
- OpenTitan hw: 18 200 multi-line instantiations, none without its fold.
- Not folded: two-dimensional instance arrays; an instance whose head an
`ifdef splits.
Co-Authored-By: Claude Mythos 5.2 <[email protected]>