(child: any, value: string)
| 906 | } |
| 907 | |
| 908 | function setTextLikeValue(child: any, value: string): void { |
| 909 | if (child.type === "JSXText") { |
| 910 | child.value = value; |
| 911 | return; |
| 912 | } |
| 913 | if (child.type === "JSXExpressionContainer" && child.expression?.type === "StringLiteral") { |
| 914 | child.expression.value = value; |
| 915 | } |
| 916 | } |
| 917 | |
| 918 | function isWhitespaceOnlyTextLikeChild(child: any): boolean { |
| 919 | const value = getTextLikeValue(child); |
no outgoing calls
no test coverage detected