MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / buildViewArray

Function buildViewArray

static/libs/codemirror.js:2073–2081  ·  view source on GitHub ↗
(cm, from, to)

Source from the content-addressed store, hash-verified

2071
2072// Create a range of LineView objects for the given lines.
2073function buildViewArray(cm, from, to) {
2074 var array = [], nextPos;
2075 for (var pos = from; pos < to; pos = nextPos) {
2076 var view = new LineView(cm.doc, getLine(cm.doc, pos), pos);
2077 nextPos = pos + view.size;
2078 array.push(view);
2079 }
2080 return array
2081}
2082
2083var operationGroup = null;
2084

Callers 2

regChangeFunction · 0.85
adjustViewFunction · 0.85

Calls 1

getLineFunction · 0.85

Tested by

no test coverage detected