{"ast_node_type":"other","tokens":[{"end":19,"kind":"keyword","start":0,"text":"match"}]}
        match res {
            Res::Def(DefKind::Variant, variant_id) => Ok(adt_def.variant_index_with_id(variant_id)),