{"ast_node_type":"function","tokens":[{"end":65,"kind":"keyword","start":0,"text":"pub"}]}
    pub fn variants(self, db: &dyn HirDatabase) -> Vec<Variant> {
        self.id.enum_variants(db).variants.iter().map(|&(id, _, _)| Variant { id }).collect()