(old, endCh, isInsert)
| 6371 | return nw; |
| 6372 | } |
| 6373 | function markedSpansAfter(old, endCh, isInsert) { |
| 6374 | if (old) for (var i = 0, nw; i < old.length; ++i) { |
| 6375 | var span = old[i], marker = span.marker; |
| 6376 | var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= endCh : span.to > endCh); |
| 6377 | if (endsAfter || span.from == endCh && marker.type == "bookmark" && (!isInsert || span.marker.insertLeft)) { |
| 6378 | var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= endCh : span.from < endCh); |
| 6379 | (nw || (nw = [])).push(new MarkedSpan(marker, startsBefore ? null : span.from - endCh, |
| 6380 | span.to == null ? null : span.to - endCh)); |
| 6381 | } |
| 6382 | } |
| 6383 | return nw; |
| 6384 | } |
| 6385 | |
| 6386 | // Given a change object, compute the new set of marker spans that |
| 6387 | // cover the line in which the change took place. Removes spans |
no outgoing calls
no test coverage detected