Check has an attribute arg.
(needle: &str, arg: &str, attributes: &[syn::Attribute])
| 127 | |
| 128 | /// Check has an attribute arg. |
| 129 | pub fn has_attribute_arg(needle: &str, arg: &str, attributes: &[syn::Attribute]) -> bool { |
| 130 | get_attribute_arg(needle, arg, attributes).is_some() |
| 131 | } |
| 132 | |
| 133 | /// Checks if a [`proc_macro2::TokenTree`] is a literal character ('a'), string ("hello"), |
| 134 | /// number (2.3), etc. If so, trim it to retain only the comment body, returning `Some(comment)`, |
no test coverage detected