(doc, line)
| 4272 | } |
| 4273 | |
| 4274 | function lineIsHidden(doc, line) { |
| 4275 | var sps = sawCollapsedSpans && line.markedSpans; |
| 4276 | if (sps) for (var sp, i = 0; i < sps.length; ++i) { |
| 4277 | sp = sps[i]; |
| 4278 | if (!sp.marker.collapsed) continue; |
| 4279 | if (sp.from == null) return true; |
| 4280 | if (sp.marker.replacedWith) continue; |
| 4281 | if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp)) |
| 4282 | return true; |
| 4283 | } |
| 4284 | } |
| 4285 | function lineIsHiddenInner(doc, line, span) { |
| 4286 | if (span.to == null) { |
| 4287 | var end = span.marker.find().to, endLine = getLine(doc, end.line); |
no test coverage detected