{"ast_node_type":"other","tokens":[{"end":32,"kind":"keyword","start":0,"text":"(0..self.num_variants())"}]}
        (0..self.num_variants())
    pub fn variants_iter(&self) -> impl Iterator<Item = VariantDef> {
            .map(|idx| VariantDef { idx: VariantIdx::to_val(idx), adt_def: *self })