Function run_function_xray
pub fn run_function_xray<R: Repo>(
db: &FactsDb,
repo: &R,
opts: &Options,
target: &str,
) -> Result<Vec<FunctionXrayRow>>Expand description
Run the function-xray analysis.
target is a repo-relative path (e.g. src/foo.rs). Returns rows sorted
by change_freq DESC, then function ASC for determinism. Only HEAD-alive
functions are included.
§Errors
Returns crate::CodeLoreError::Analysis on DuckDB errors or if the
target file is not a supported Tier-1 language.
§Panics
Panics if an internal invariant is violated: every function name inserted
into freq (from head_spans) must be present when looked up during
overlap attribution. This cannot happen under normal operation.