Skip to main content

Module index

Module index 

Source
Expand description

file_index salsa query — derives a compact FileIndex from a parsed document. Depends on parsed_doc, so editing a file reparses once and the index re-extracts from the new AST.

Structs§

IndexArc
Arc wrapper for FileIndex. FileIndex is structurally clone-able but doesn’t implement salsa’s Update — we wrap in Arc and compare pointers, mirroring the ParsedArc approach. A new extract always produces a fresh Arc, so pointer inequality is a safe “changed” signal.

Functions§

file_index
Build the compact symbol index for a file. no_eq so salsa doesn’t try to compare IndexArc structurally; invalidation flows from parsed_doc.