(line, start)
| 1499 | // Find out whether a line ends or starts in a collapsed span. If |
| 1500 | // so, return the marker for that span. |
| 1501 | function collapsedSpanAtSide(line, start) { |
| 1502 | var sps = sawCollapsedSpans && line.markedSpans, found; |
| 1503 | if (sps) { for (var sp = (void 0), i = 0; i < sps.length; ++i) { |
| 1504 | sp = sps[i]; |
| 1505 | if (sp.marker.collapsed && (start ? sp.from : sp.to) == null && |
| 1506 | (!found || compareCollapsedMarkers(found, sp.marker) < 0)) |
| 1507 | { found = sp.marker; } |
| 1508 | } } |
| 1509 | return found |
| 1510 | } |
| 1511 | function collapsedSpanAtStart(line) { return collapsedSpanAtSide(line, true) } |
| 1512 | function collapsedSpanAtEnd(line) { return collapsedSpanAtSide(line, false) } |
| 1513 |
no test coverage detected