Skip to main content

scan_file

Function scan_file 

Source
pub fn scan_file(
    analyzer: &CppGraphSource<'_>,
    visibility: &VisibilityIndex<'_>,
    file: &ProjectFile,
    input: &FileEdgeScanInput<'_>,
) -> PerFileEdges
Expand description

The C++ half of one file’s inverted pass: seed the scan context from the already-parsed tree and walk it, recording every caller -> callee edge the file names.

The pass’s fan-out – build_edge_output plus parse_and_collect, the shared language-agnostic driver – stays in brokk-bifrost-analysis and calls this once per kept file.