MCPcopy Create free account
hub / github.com/breck7/scroll / buildViewArray

Function buildViewArray

external/.scrollLibs.js:3198–3207  ·  view source on GitHub ↗
(cm, from, to)

Source from the content-addressed store, hash-verified

3196
3197 // Create a range of LineView objects for the given lines.
3198 function buildViewArray(cm, from, to) {
3199 var array = [],
3200 nextPos
3201 for (var pos = from; pos < to; pos = nextPos) {
3202 var view = new LineView(cm.doc, getLine(cm.doc, pos), pos)
3203 nextPos = pos + view.size
3204 array.push(view)
3205 }
3206 return array
3207 }
3208
3209 var operationGroup = null
3210

Callers 2

regChangeFunction · 0.85
adjustViewFunction · 0.85

Calls 1

getLineFunction · 0.85

Tested by

no test coverage detected