MCPcopy Index your code
hub / github.com/csev/py4e / lineIsHidden

Function lineIsHidden

tools/pythonauto/static/codemirrorepl/codemirror.js:5396–5406  ·  view source on GitHub ↗
(doc, line)

Source from the content-addressed store, hash-verified

5394 // are part of a visual line that starts with another line, or when
5395 // they are entirely covered by collapsed, non-widget span.
5396 function lineIsHidden(doc, line) {
5397 var sps = sawCollapsedSpans && line.markedSpans;
5398 if (sps) for (var sp, i = 0; i < sps.length; ++i) {
5399 sp = sps[i];
5400 if (!sp.marker.collapsed) continue;
5401 if (sp.from == null) return true;
5402 if (sp.marker.widgetNode) continue;
5403 if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp))
5404 return true;
5405 }
5406 }
5407 function lineIsHiddenInner(doc, line, span) {
5408 if (span.to == null) {
5409 var end = span.marker.find(1, true);

Callers 6

estimateHeightFunction · 0.70
LineViewFunction · 0.70
codemirror.jsFile · 0.70
markTextFunction · 0.70
visualLineEndNoFunction · 0.70
addLineWidgetFunction · 0.70

Calls 1

lineIsHiddenInnerFunction · 0.70

Tested by

no test coverage detected