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

Method document_node

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

Source from the content-addressed store, hash-verified

1641 }
1642
1643 fn document_node(&self, depth: i64) -> Value {
1644 json!({
1645 "nodeId": 1,
1646 "backendNodeId": 1,
1647 "nodeType": 9,
1648 "nodeName": "#document",
1649 "localName": "",
1650 "nodeValue": "",
1651 "childNodeCount": self.document_children.len(),
1652 "children": self.document_children
1653 .iter()
1654 .map(|node_id| self.node_value(*node_id, depth))
1655 .collect::<Vec<_>>(),
1656 })
1657 }
1658
1659 fn flattened_nodes(&self, depth: i64) -> Vec<Value> {
1660 let mut nodes = vec![self.document_node(0)];

Callers 1

describe_nodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected