(node: any, result: any[])
| 1562 | } |
| 1563 | |
| 1564 | function collectJSXTextNodes(node: any, result: any[]): void { |
| 1565 | if (!node.children) return; |
| 1566 | for (const child of node.children) { |
| 1567 | if (child.type === "JSXText") result.push(child); |
| 1568 | if (child.type === "JSXElement") collectJSXTextNodes(child, result); |
| 1569 | } |
| 1570 | } |
| 1571 | |
| 1572 | /** |
| 1573 | * Replace text content of a JSX element at the given source position. |
nothing calls this directly
no outgoing calls
no test coverage detected