(node: any)
| 1155 | } |
| 1156 | |
| 1157 | function getTextLikeNodeValue(node: any): string { |
| 1158 | if (!node) return ""; |
| 1159 | if (node.type === "JSXText") return node.value ?? ""; |
| 1160 | if (node.type === "JSXExpressionContainer") { |
| 1161 | const value = getLiteralAttributeValue(node.expression); |
| 1162 | return value ?? ""; |
| 1163 | } |
| 1164 | return ""; |
| 1165 | } |
| 1166 | |
| 1167 | function getLeadingInlineSeparator(text: string): string { |
| 1168 | if (!text) return ""; |
no test coverage detected