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

Function empty_accessibility_tree

packages/server/src/api/routes.rs:4900–4913  ·  view source on GitHub ↗
(
    source: &str,
    available_sources: &[String],
    fallback_reason: Option<String>,
)

Source from the content-addressed store, hash-verified

4898}
4899
4900fn empty_accessibility_tree(
4901 source: &str,
4902 available_sources: &[String],
4903 fallback_reason: Option<String>,
4904) -> Value {
4905 attach_tree_metadata(
4906 json_value!({
4907 "roots": [],
4908 "source": source,
4909 }),
4910 available_sources,
4911 fallback_reason,
4912 )
4913}
4914
4915fn suppress_native_ax_translation_error(message: &str) -> Option<String> {
4916 if message.contains("No translation object returned for simulator")

Callers 2

accessibility_tree_valueFunction · 0.85

Calls 1

attach_tree_metadataFunction · 0.85

Tested by

no test coverage detected