MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / remote_node_object

Method remote_node_object

packages/server/src/devtools.rs:1747–1760  ·  view source on GitHub ↗
(&self, node_id: u64)

Source from the content-addressed store, hash-verified

1745 }
1746
1747 fn remote_node_object(&self, node_id: u64) -> Value {
1748 let description = self
1749 .nodes
1750 .get(&node_id)
1751 .map(|node| node_description(&node.node))
1752 .unwrap_or_else(|| "#document".to_owned());
1753 json!({
1754 "type": "object",
1755 "subtype": "node",
1756 "className": "SimDeckNode",
1757 "description": description,
1758 "objectId": format!("node:{node_id}"),
1759 })
1760 }
1761
1762 fn box_model(&self, node_id: u64) -> Value {
1763 let rect = self

Callers

nothing calls this directly

Calls 2

node_descriptionFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected