pub fn read_project_sources(roots: &AnalysisRoots) -> HashMap<PathBuf, String>Expand description
A complete (path, content) map for roots, resolved and enumerated the
same way bynk_ide::diagnose_project_with’s own callers already do — the
direct replacement for diagnose_project(&root, &HashMap::new())’s
reliance on bynk-emit’s disk fallback filling in what the (empty)
overlay doesn’t cover.
Content-ownership track (#1086) slice 5 correction: for
bynk_ide::AnalysisRoots::Project, also reads roots’s own
bynk.toml and includes it in the returned map — bynk_ide::discover_files
needs it to resolve a non-conventional [paths] include/exclude, and a
caller re-lowering roots against this map (e.g. a subsequent
diagnose_project_with) needs it too. bynk-ide can no longer fall back
to a disk read for a miss itself (R2.3), so this crate — a dev-only test
seam, not gated by R2.3 at all — is where that real read belongs.