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. Uses structural equality on the inner FileIndex so 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 IndexArc structurally via FileIndex::PartialEq; if declarations are unchanged (body-only edit) the comparison returns equal and workspace_index is not re-run.