MCPcopy Create free account
hub / github.com/sql-js/sql.js / LineView

Function LineView

GUI/codemirror/lib/codemirror.js:2010–2019  ·  view source on GitHub ↗
(doc, line, lineN)

Source from the content-addressed store, hash-verified

2008 // part of the document. A LineView may correspond to multiple
2009 // logical lines, if those are connected by collapsed ranges.
2010 function LineView(doc, line, lineN) {
2011 // The starting line
2012 this.line = line;
2013 // Continuing lines, if any
2014 this.rest = visualLineContinued(line);
2015 // Number of logical lines in this visual line
2016 this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1;
2017 this.node = this.text = null;
2018 this.hidden = lineIsHidden(doc, line);
2019 }
2020
2021 // Create a range of LineView objects for the given lines.
2022 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…