MCPcopy Index your code
hub / github.com/DHTMLX/gantt / collapsedSpanAtSide

Function collapsedSpanAtSide

samples/common/codehighlight/codemirror.js:1501–1510  ·  view source on GitHub ↗
(line, start)

Source from the content-addressed store, hash-verified

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

Callers 2

collapsedSpanAtStartFunction · 0.85
collapsedSpanAtEndFunction · 0.85

Calls 1

compareCollapsedMarkersFunction · 0.85

Tested by

no test coverage detected