{"ast_node_type":"function","tokens":[{"end":98,"kind":"keyword","start":0,"text":"pub"}]}
    pub fn discriminant_def_for_variant(self, variant_index: VariantIdx) -> (Option<DefId>, u32) {
    /// inferred discriminant directly.
        assert!(!self.variants().is_empty());