pub fn doc_type(ty: &TypeRef, lang: Language) -> String
Map an IR TypeRef to the idiomatic type string for a given language.