MCPcopy
hub / github.com/csev/py4e / insertLineWidgets

Function insertLineWidgets

tools/pythonauto/static/codemirrorepl/codemirror.js:883–887  ·  view source on GitHub ↗
(lineView, dims)

Source from the content-addressed store, hash-verified

881 // A lineView may contain multiple logical lines (when merged by
882 // collapsed spans). The widgets for all of them need to be drawn.
883 function insertLineWidgets(lineView, dims) {
884 insertLineWidgetsFor(lineView.line, lineView, dims, true);
885 if (lineView.rest) for (var i = 0; i < lineView.rest.length; i++)
886 insertLineWidgetsFor(lineView.rest[i], lineView, dims, false);
887 }
888
889 function insertLineWidgetsFor(line, lineView, dims, allowAbove) {
890 if (!line.widgets) return;

Callers 2

updateLineWidgetsFunction · 0.85
buildLineElementFunction · 0.85

Calls 1

insertLineWidgetsForFunction · 0.85

Tested by

no test coverage detected