{"ast_node_type":"other","tokens":[{"end":25,"kind":"keyword","start":0,"text":"if"}]}
        if !is_function {
        let is_function = matches!(target, Target::Fn | Target::Method(..));
            self.dcx().emit_err(errors::AttrShouldBeAppliedToFn {