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

Function node_description

packages/server/src/devtools.rs:1894–1904  ·  view source on GitHub ↗
(node: &Value)

Source from the content-addressed store, hash-verified

1892}
1893
1894fn node_description(node: &Value) -> String {
1895 let name = node_name(node);
1896 let title = string_value(node, "title")
1897 .or_else(|| string_value(node, "text"))
1898 .or_else(|| string_value(node, "AXLabel"));
1899 if let Some(title) = title {
1900 format!("{name} \"{title}\"")
1901 } else {
1902 name
1903 }
1904}
1905
1906fn node_attributes(node: &Value, inspector_id: Option<&str>) -> Vec<Value> {
1907 let mut attributes = Vec::new();

Callers 1

remote_node_objectMethod · 0.85

Calls 2

node_nameFunction · 0.85
string_valueFunction · 0.70

Tested by

no test coverage detected