MCPcopy Create free account
hub / github.com/csskit/csskit / has_queryable_skip

Function has_queryable_skip

crates/csskit_derives/src/visitable.rs:58–69  ·  view source on GitHub ↗
(attrs: &[Attribute])

Source from the content-addressed store, hash-verified

56}
57
58fn 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()`.

Callers 1

deriveFunction · 0.85

Calls 2

iterMethod · 0.80
pathMethod · 0.80

Tested by

no test coverage detected