// L3: cross-file resolution.
//
// For v0 we ship a heuristic only: `dependents_of(module)` matches a string against
// the `module` field on imports, plus a substring fallback against the raw import text.
// Real per-language module resolvers land later.
use ;
use Import;
/// Find files whose import list mentions `module` either as the exact module path
/// or as a substring of the raw import text.
///
/// Accepts a slice of `(path, imports)` rather than a HashMap so callers can pass
/// pre-sorted vectors (the MCP server preloads one) without paying for HashMap
/// construction or being locked into a specific hasher.