* splits the iterator into two, so that they can be advanced independently. * * @returns a new iterator that starts at the current position.
()
| 40 | * @returns a new iterator that starts at the current position. |
| 41 | */ |
| 42 | tee() { |
| 43 | return new LineIterator(this.lineBuffer, this.current, this.stopExpression); |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Stops the iterator at the point where we find the matching line. |