Skip to main content

paired_import_relations

Function paired_import_relations 

Source
fn paired_import_relations(
    graph: &SymbolGraph,
    control: &IndexWorkControl,
) -> Result<PairedImportRelations, CliError>
Expand description

Pair import symbols and relations once by source line and occurrence.

Tree-sitter emits an import declaration as both a symbol and an import relation. Pairing by source line and occurrence keeps those observations tied to one parser fact while retaining distinct same-line imports.