(child: any, text: string)
| 844 | } |
| 845 | |
| 846 | function appendToChildText(child: any, text: string): boolean { |
| 847 | if (child.type === "JSXText") { |
| 848 | child.value += text; |
| 849 | return true; |
| 850 | } |
| 851 | if (child.type === "JSXExpressionContainer" && child.expression?.type === "StringLiteral") { |
| 852 | child.expression.value = String(child.expression.value ?? "") + text; |
| 853 | return true; |
| 854 | } |
| 855 | return false; |
| 856 | } |
| 857 | |
| 858 | function stripLeadingWhitespace(child: any): void { |
| 859 | if (child.type === "JSXText") { |
no outgoing calls
no test coverage detected