{"ast_node_type":"function","tokens":[{"end":87,"kind":"keyword","start":0,"text":"fn"}]}
    fn check_link(&self, hir_id: HirId, attr: &Attribute, span: Span, target: Target) {
    /// Checks if `#[link]` is applied to an item other than a foreign module.
        if target == Target::ForeignMod