(doc, line, lineN)
| 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) { |
nothing calls this directly
no test coverage detected