{"ast_node_type":"function","tokens":[{"end":46,"kind":"keyword","start":0,"text":"pub"}]}
pub fn path_pat(path: ast::Path) -> ast::Pat {
/// Returns a `IdentPat` if the path has just one segment, a `PathPat` otherwise.
    return from_text(&path.to_string());