{"ast_node_type":"function","tokens":[{"end":93,"kind":"keyword","start":0,"text":"pub"}]}
    pub fn from_attr(attr: &impl AttributeExt) -> Option<(Self, Option<LintExpectationId>)> {
    /// Converts an `Attribute` to a level.
        attr.name().and_then(|name| Self::from_symbol(name, || Some(attr.id())))