Skip to main content

Module usage_index

Module usage_index 

Source
Expand description

Analyzer-level re-export + importer index for Python, so both usage paths resolve references through analyzer state. Built once from the analyzer’s own module index + export_index_of / import_binder_of and cached on [PythonAnalyzer] (dropped on update/update_all like the other caches).

Forward export seeds follow re-export chains (PythonUsageIndex::seeds_for_target), and the reverse importer index resolves which local names in an importer bind a seed (PythonUsageIndex::matching_edges_for_importer). Candidate-file narrowing stays in the forward path’s scoped import closure (PythonProjectGraph), not here. Module resolution reuses the analyzer’s existing python_module_name

Structs§

ModuleBindingEvent
PythonUsageIndex
Re-export and reverse-import indices over the Python workspace.

Enums§

ModuleBindingEventKind

Functions§

usage_importer_files
usage_matching_edges
The import edges in importer that bind one of the seeds.
usage_module_binding_timeline
usage_resolve_module_files
usage_scope_facts
usage_seeds
Export seeds for the target, following re-export chains.

Type Aliases§

ModuleBindingTimeline
PythonScopeFacts