Skip to main content

Module symbol_map

Module symbol_map 

Source
Expand description

symbol_map salsa query — derives a SymbolMap from a parsed document.

Depends on parsed_doc, so editing a file reparses once and then the symbol map rebuilds. Between edits all lookups are served from the cache in O(1).

Structs§

SymbolMapArc
Arc wrapper for SymbolMap. Pointer equality drives salsa invalidation: every build call produces a new Arc, so a changed parse always propagates.

Functions§

symbol_map
Build the symbol map for a file. no_eq because SymbolMapArc has no structural equality — invalidation flows from parsed_doc.