{"ast_node_type":"function","tokens":[{"end":72,"kind":"keyword","start":0,"text":"pub"}]}
    pub fn has_attr(self, did: impl Into<DefId>, attr: Symbol) -> bool {
    /// Determines whether an item is annotated with an attribute.
        self.get_attrs(did, attr).next().is_some()