MCPcopy
hub / github.com/witheve/Eve / insertLineWidgets

Function insertLineWidgets

src/codemirror.js:1037–1041  ·  view source on GitHub ↗
(cm, lineView, dims)

Source from the content-addressed store, hash-verified

1035 // A lineView may contain multiple logical lines (when merged by
1036 // collapsed spans). The widgets for all of them need to be drawn.
1037 function insertLineWidgets(cm, lineView, dims) {
1038 insertLineWidgetsFor(cm, lineView.line, lineView, dims, true);
1039 if (lineView.rest) for (var i = 0; i < lineView.rest.length; i++)
1040 insertLineWidgetsFor(cm, lineView.rest[i], lineView, dims, false);
1041 }
1042
1043 function insertLineWidgetsFor(cm, line, lineView, dims, allowAbove) {
1044 if (!line.widgets) return;

Callers 2

updateLineWidgetsFunction · 0.85
buildLineElementFunction · 0.85

Calls 1

insertLineWidgetsForFunction · 0.85

Tested by

no test coverage detected