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

Function LineView

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

Source from the content-addressed store, hash-verified

1994 // part of the document. A LineView may correspond to multiple
1995 // logical lines, if those are connected by collapsed ranges.
1996 function LineView(doc, line, lineN) {
1997 // The starting line
1998 this.line = line;
1999 // Continuing lines, if any
2000 this.rest = visualLineContinued(line);
2001 // Number of logical lines in this visual line
2002 this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1;
2003 this.node = this.text = null;
2004 this.hidden = lineIsHidden(doc, line);
2005 }
2006
2007 // Create a range of LineView objects for the given lines.
2008 function buildViewArray(cm, from, to) {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected