(chunk: string)
| 187 | |
| 188 | return { |
| 189 | push(chunk: string): string { |
| 190 | if (!chunk) return ''; |
| 191 | |
| 192 | rawText += chunk; |
| 193 | if (!tryUnlock()) return ''; |
| 194 | |
| 195 | const safeRawLength = Math.max(0, rawText.length - guardChars); |
| 196 | if (safeRawLength <= 0) return ''; |
| 197 | |
| 198 | return emitFromRawLength(safeRawLength); |
| 199 | }, |
| 200 | |
| 201 | finish(): string { |
| 202 | if (!rawText) return ''; |
nothing calls this directly
no test coverage detected