MCPcopy
hub / github.com/agentejo/cockpit / buildViewArray

Function buildViewArray

assets/lib/codemirror/lib/codemirror.js:2007–2015  ·  view source on GitHub ↗
(cm, from, to)

Source from the content-addressed store, hash-verified

2005
2006 // Create a range of LineView objects for the given lines.
2007 function buildViewArray(cm, from, to) {
2008 var array = [], nextPos;
2009 for (var pos = from; pos < to; pos = nextPos) {
2010 var view = new LineView(cm.doc, getLine(cm.doc, pos), pos);
2011 nextPos = pos + view.size;
2012 array.push(view);
2013 }
2014 return array
2015 }
2016
2017 var operationGroup = null;
2018

Callers 2

regChangeFunction · 0.85
adjustViewFunction · 0.85

Calls 1

getLineFunction · 0.85

Tested by

no test coverage detected