{"ast_node_type":"variable","tokens":[{"end":61,"kind":"keyword","start":0,"text":"if"}]}
        if let DefKind::Variant = tcx.def_kind(encl_def_id) {
        // `ignored_derived_traits` is computed for the enum, not for the variants.
            encl_def_id = tcx.local_parent(encl_def_id);