{"ast_node_type":"function","tokens":[{"end":67,"kind":"keyword","start":0,"text":"pub"}]}
    pub fn expect_variant_res(self, res: Res) -> &'tcx VariantDef {
    /// or variant or their constructors, panics otherwise.
        match res {