MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / buildViewArray

Function buildViewArray

static/plugins/codemirror/codemirror.js:2012–2020  ·  view source on GitHub ↗
(cm, from, to)

Source from the content-addressed store, hash-verified

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

Callers 2

regChangeFunction · 0.85
adjustViewFunction · 0.85

Calls 1

getLineFunction · 0.85

Tested by

no test coverage detected