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. Uses structural equality on the innerFileIndexso salsa can short-circuit downstream queries (e.g.workspace_index) when a body-only edit produces an identical index.
Functions§
- file_
index - Build the compact symbol index for a file. Salsa compares the returned
IndexArcstructurally viaFileIndex::PartialEq; if declarations are unchanged (body-only edit) the comparison returns equal andworkspace_indexis not re-run.