{"ast_node_type":"other","tokens":[{"end":44,"kind":"keyword","start":0,"text":"if"}]}
            if def.kind() == AdtKind::Enum {
        AggregateKind::Adt(def, var, _, _, _) => {
                write!(writer, "{}::{}", def.name(), def.variant(*var).unwrap().name())?;