(child: any, text: string)
| 832 | } |
| 833 | |
| 834 | function prependToChildText(child: any, text: string): boolean { |
| 835 | if (child.type === "JSXText") { |
| 836 | child.value = text + child.value; |
| 837 | return true; |
| 838 | } |
| 839 | if (child.type === "JSXExpressionContainer" && child.expression?.type === "StringLiteral") { |
| 840 | child.expression.value = text + String(child.expression.value ?? ""); |
| 841 | return true; |
| 842 | } |
| 843 | return false; |
| 844 | } |
| 845 | |
| 846 | function appendToChildText(child: any, text: string): boolean { |
| 847 | if (child.type === "JSXText") { |
no outgoing calls
no test coverage detected