use std::path::Path;
pub const PRODUCER: &str = "ruled-callgraph-v14-resolver-precision";
pub fn source_language(path: &Path) -> Option<crate::parser::LangId> {
crate::parser::detect_language(path)
.filter(|language| *language != crate::parser::LangId::Markdown)
}
pub fn is_resolution_input(path: &[u8]) -> bool {
let name = path.rsplit(|byte| *byte == b'/').next().unwrap_or(path);
name == b"package.json"
|| name == b"pnpm-workspace.yaml"
|| name == b"Cargo.toml"
|| name == b"go.mod"
|| name == b".gitignore"
|| cfg!(feature = "wasm-grammars") && name == b".luaurc"
|| name.starts_with(b"tsconfig") && name.ends_with(b".json")
}