{"ast_node_type":"other","tokens":[{"end":36,"kind":"keyword","start":0,"text":"Some(hir::Adt::Enum(x))"}]}
        Some(hir::Adt::Enum(x)) => {
    match ty.as_adt() {
            if let &[variant] = &*x.variants(db) {