syntax_data: {"ast_node_type":"variable","tokens":[{"end":52,"kind":"keyword","start":0,"text":"if"}]}
source_snippet:             if let Res::Def(kind, def_id) = path.res
context_before:         hir::TyKind::Path(hir::QPath::Resolved(_, path)) => {
context_after:                 && matches!(kind, DefKind::Enum | DefKind::Struct | DefKind::Union)