MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / lineIsHidden

Function lineIsHidden

static/js/codemirror/codemirror.js:3726–3735  ·  view source on GitHub ↗
(doc, line)

Source from the content-addressed store, hash-verified

3724 }
3725
3726 function lineIsHidden(doc, line) {
3727 var sps = sawCollapsedSpans && line.markedSpans;
3728 if (sps) for (var sp, i = 0; i < sps.length; ++i) {
3729 sp = sps[i];
3730 if (!sp.marker.collapsed) continue;
3731 if (sp.from == null) return true;
3732 if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp))
3733 return true;
3734 }
3735 }
3736 function lineIsHiddenInner(doc, line, span) {
3737 if (span.to == null) {
3738 var end = span.marker.find().to, endLine = getLine(doc, end.line);

Callers 7

estimateHeightFunction · 0.85
updateDisplayInnerFunction · 0.85
patchDisplayFunction · 0.85
codemirror.jsFile · 0.85
markTextFunction · 0.85
addLineWidgetFunction · 0.85
lineContentFunction · 0.85

Calls 1

lineIsHiddenInnerFunction · 0.85

Tested by

no test coverage detected