()
| 465 | } |
| 466 | |
| 467 | flush(): string[] { |
| 468 | if (!this.buffer.length && !this.trailingCR) { |
| 469 | return []; |
| 470 | } |
| 471 | |
| 472 | const lines = [this.buffer.join('')]; |
| 473 | this.buffer = []; |
| 474 | this.trailingCR = false; |
| 475 | return lines; |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | /** This is an internal helper function that's just used for testing */ |
no outgoing calls
no test coverage detected