(attrs: &[Attribute])
| 56 | } |
| 57 | |
| 58 | fn has_queryable_skip(attrs: &[Attribute]) -> bool { |
| 59 | attrs.iter().any(|attr| { |
| 60 | if attr.path().is_ident("queryable") { |
| 61 | match &attr.meta { |
| 62 | Meta::List(meta) => meta.parse_args::<Ident>().map(|i| i == "skip").unwrap_or(false), |
| 63 | _ => false, |
| 64 | } |
| 65 | } else { |
| 66 | false |
| 67 | } |
| 68 | }) |
| 69 | } |
| 70 | |
| 71 | /// Returns true if `#[derive(... FeatureMetadata ...)]` is present on the type, |
| 72 | /// indicating `visit_feature`/`exit_feature` calls should be emitted in `accept()`. |