MCPcopy Create free account
hub / github.com/breck7/scroll / LineView

Function LineView

external/.scrollLibs.js:3186–3195  ·  view source on GitHub ↗
(doc, line, lineN)

Source from the content-addressed store, hash-verified

3184 // part of the document. A LineView may correspond to multiple
3185 // logical lines, if those are connected by collapsed ranges.
3186 function LineView(doc, line, lineN) {
3187 // The starting line
3188 this.line = line
3189 // Continuing lines, if any
3190 this.rest = visualLineContinued(line)
3191 // Number of logical lines in this visual line
3192 this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1
3193 this.node = this.text = null
3194 this.hidden = lineIsHidden(doc, line)
3195 }
3196
3197 // Create a range of LineView objects for the given lines.
3198 function buildViewArray(cm, from, to) {

Callers

nothing calls this directly

Calls 4

visualLineContinuedFunction · 0.85
lineNoFunction · 0.85
lstFunction · 0.85
lineIsHiddenFunction · 0.85

Tested by

no test coverage detected