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

Method validate_balanced

crates/css_ast/src/test_helpers.rs:39–43  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

37 }
38
39 pub fn validate_balanced(&self) {
40 if !self.stack.is_empty() {
41 panic!("Unbalanced visit/exit: {} nodes were visited but not exited: {:?}", self.stack.len(), self.stack);
42 }
43 }
44}
45
46#[cfg(feature = "visitable")]

Callers 2

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected