Expand description
Materialized symbol index โ pre-computes symbol-to-file mappings for O(1) resolution.
Instead of walking the entire tree on every symbol query, SymbolIndex::build()
parses all code files in scope using tree-sitter and stores (symbol_name -> locations)
in a concurrent DashMap. Subsequent lookups are O(1) hash lookups plus a filter.
Structsยง
- Symbol
Index - Pre-computed symbol-to-file index for O(1) lookups.
- Symbol
Location - A location where a symbol appears in the codebase.