(index)
| 675 | return clone; |
| 676 | } |
| 677 | _split(index) { |
| 678 | if (this.byStart[index] || this.byEnd[index]) return; |
| 679 | let chunk = this.lastSearchedChunk; |
| 680 | const searchForward = index > chunk.end; |
| 681 | while (chunk) { |
| 682 | if (chunk.contains(index)) return this._splitChunk(chunk, index); |
| 683 | chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start]; |
| 684 | } |
| 685 | } |
| 686 | _splitChunk(chunk, index) { |
| 687 | if (chunk.edited && chunk.content.length) { |
| 688 | const loc = getLocator(this.original)(index); |
no test coverage detected