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§
- Index
Arc - Arc wrapper for
FileIndex.FileIndexis structurally clone-able but doesn’t implement salsa’sUpdate— we wrap inArcand compare pointers, mirroring theParsedArcapproach. A new extract always produces a freshArc, so pointer inequality is a safe “changed” signal.
Functions§
- file_
index - Build the compact symbol index for a file.
no_eqso salsa doesn’t try to compareIndexArcstructurally; invalidation flows fromparsed_doc.