Skip to main content

Module scip_calls

Module scip_calls 

Source
Expand description

SCIP-based call edge extraction.

Uses rust-analyzer’s SCIP output to derive high-fidelity Calls edges. SCIP provides compiler-quality definition/reference data; we correlate references inside function body ranges to produce call edges.

§Pipeline

  1. Run rust-analyzer scip . on the target crate (external process)
  2. Parse the SCIP protobuf output
  3. Build a map: symbol → definition location (file + range)
  4. For each function body, find all reference occurrences
  5. Match references to known definitions → emit CodeEdge::Calls

Structs§

ScipCallResult
Result of SCIP-based call extraction.

Functions§

extract_calls_from_scip
Extract call edges from a SCIP index file, mapping to existing CodeNodes.
extract_scip_call_edges
Generate SCIP index and extract call edges in one step.
generate_scip_index
Run rust-analyzer scip on a crate directory and return the SCIP index path.