MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / child_count

Method child_count

atomic-core/src/output/alive/graph.rs:314–317  ·  view source on GitHub ↗

Get the number of children for a span. This includes both regular and extra children.

(&self, id: VertexId)

Source from the content-addressed store, hash-verified

312 ///
313 /// This includes both regular and extra children.
314 pub fn child_count(&self, id: VertexId) -> usize {
315 let v = &self.vertices[id.index()];
316 v.n_children + v.extra.len()
317 }
318
319 /// Add an extra child to a span.
320 ///

Callers 8

detect_fork_conflictsFunction · 0.80
walk_treeMethod · 0.80
extract_class_membersMethod · 0.80
get_class_heritageMethod · 0.80
get_interface_extendsMethod · 0.80
extract_call_nameMethod · 0.80

Calls 2

indexMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected