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

Method is_empty_container

crates/css_ast/src/metadata.rs:355–357  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

353 /// Returns true if this is an empty container (no declarations, no nested rules).
354 #[inline]
355 pub fn is_empty_container(&self) -> bool {
356 self.node_kinds.contains(NodeKinds::EmptyBlock)
357 }
358
359 /// Returns true if this node can be a container (has StyleRule or AtRule kind).
360 #[inline]

Callers 3

can_matchMethod · 0.80
matchesMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected