MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / buildCollapsedSpan

Function buildCollapsedSpan

static/js/codemirror/codemirror.js:4052–4062  ·  view source on GitHub ↗
(builder, size, widget)

Source from the content-addressed store, hash-verified

4050 }
4051
4052 function buildCollapsedSpan(builder, size, widget) {
4053 if (widget) {
4054 if (!builder.display) widget = widget.cloneNode(true);
4055 builder.pre.appendChild(widget);
4056 if (builder.measure && size) {
4057 builder.measure[builder.pos] = widget;
4058 builder.addedOne = true;
4059 }
4060 }
4061 builder.pos += size;
4062 }
4063
4064 // Outputs a number of spans to make up a line, taking highlighting
4065 // and marked text into account.

Callers 1

insertLineContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected