MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / flattened_nodes

Method flattened_nodes

packages/server/src/devtools.rs:1659–1665  ·  view source on GitHub ↗
(&self, depth: i64)

Source from the content-addressed store, hash-verified

1657 }
1658
1659 fn flattened_nodes(&self, depth: i64) -> Vec<Value> {
1660 let mut nodes = vec![self.document_node(0)];
1661 for node_id in &self.document_children {
1662 self.append_flattened(*node_id, depth, &mut nodes);
1663 }
1664 nodes
1665 }
1666
1667 fn append_flattened(&self, node_id: u64, depth: i64, nodes: &mut Vec<Value>) {
1668 nodes.push(self.node_value(node_id, 0));

Callers

nothing calls this directly

Calls 1

append_flattenedMethod · 0.80

Tested by

no test coverage detected