MCPcopy Index your code
hub / github.com/witheve/Eve / LineView

Function LineView

src/codemirror.js:3234–3243  ·  view source on GitHub ↗
(doc, line, lineN)

Source from the content-addressed store, hash-verified

3232 // part of the document. A LineView may correspond to multiple
3233 // logical lines, if those are connected by collapsed ranges.
3234 function LineView(doc, line, lineN) {
3235 // The starting line
3236 this.line = line;
3237 // Continuing lines, if any
3238 this.rest = visualLineContinued(line);
3239 // Number of logical lines in this visual line
3240 this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1;
3241 this.node = this.text = null;
3242 this.hidden = lineIsHidden(doc, line);
3243 }
3244
3245 // Create a range of LineView objects for the given lines.
3246 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