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