(previousText: string, nextText: string, sourceBetween: string)
| 799 | } |
| 800 | |
| 801 | function needsBoundarySpace(previousText: string, nextText: string, sourceBetween: string): boolean { |
| 802 | if (!previousText || !nextText) return false; |
| 803 | if (/\s$/.test(previousText) || /^\s/.test(nextText)) return false; |
| 804 | return /\s/.test(sourceBetween); |
| 805 | } |
| 806 | |
| 807 | function getRenderedElementText(node: any, source?: string, lineStarts?: number[]): string { |
| 808 | const children = node.children; |
no outgoing calls
no test coverage detected