(segments: FullSegment[])
| 65 | } |
| 66 | |
| 67 | endLine(segments: FullSegment[]): void { |
| 68 | this.lines.push(segments) |
| 69 | // count the line itself too, so content dominated by line breaks also drains |
| 70 | this.buffered += segments.length + 1 |
| 71 | if (this.buffered >= SEGMENTS_PER_FLUSH) |
| 72 | this.drain(null) |
| 73 | } |
| 74 | |
| 75 | segments(segments: FullSegment[]): void { |
| 76 | this.drain(segments) |
no test coverage detected