{"ast_node_type":"variable","tokens":[{"end":62,"kind":"keyword","start":0,"text":"if"}]}
            if let Some((AdtId::EnumId(e), _)) = ty.as_adt() {
        if let DefWithBodyId::VariantId(f) = locals.body.owner {
                if f.lookup(self.db).parent == e {