Skip to main content

Module symbol

Module symbol 

Source
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ยง

SymbolIndex
Pre-computed symbol-to-file index for O(1) lookups.
SymbolLocation
A location where a symbol appears in the codebase.