{"ast_node_type":"function","tokens":[{"end":47,"kind":"keyword","start":0,"text":"pub(crate)"}]}
pub(crate) fn type_is_unit(ty: &Type) -> bool {
/// Checks whether the type `ty` is `()`.
    if let Type::Tuple(TypeTuple { elems, .. }) = ty { elems.is_empty() } else { false }