MCPcopy Index your code
hub / github.com/callstack/agent-device / summarizeNode

Function summarizeNode

test/integration/test-helpers.ts:334–341  ·  view source on GitHub ↗
(node: any)

Source from the content-addressed store, hash-verified

332}
333
334function summarizeNode(node: any): string {
335 const ref = typeof node?.ref === 'string' ? node.ref : '(no-ref)';
336 const type = typeof node?.type === 'string' ? node.type : '(no-type)';
337 const label =
338 typeof node?.label === 'string' && node.label.length > 0 ? node.label : '(no-label)';
339 const rect = node?.rect ? JSON.stringify(node.rect) : '(no-bounds)';
340 return `${ref} type=${type} label=${JSON.stringify(label)} rect=${rect}`;
341}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected