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

Method enter_node

crates/csskit/src/commands/tree.rs:119–124  ·  view source on GitHub ↗
(&mut self, query: VisitNode)

Source from the content-addressed store, hash-verified

117#[visitor]
118impl<'a> Visit for CollectionVisitor<'a> {
119 fn enter_node(&mut self, query: VisitNode) {
120 let display = self.build_display(&query);
121 let node_info = NodeInfo { display, depth: self.depth, child_start_idx: self.nodes.len() + 1 };
122 self.nodes.push(node_info);
123 self.depth += 1;
124 }
125
126 fn exit_node(&mut self, _query: VisitNode) {
127 self.depth -= 1;

Callers

nothing calls this directly

Calls 2

build_displayMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected