MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / attachMarkedSpans

Function attachMarkedSpans

lib/web/CodeMirror/src/line/spans.js:180–185  ·  view source on GitHub ↗
(line, spans)

Source from the content-addressed store, hash-verified

178 line.markedSpans = null
179}
180export function attachMarkedSpans(line, spans) {
181 if (!spans) return
182 for (let i = 0; i < spans.length; ++i)
183 spans[i].marker.attachLine(line)
184 line.markedSpans = spans
185}
186
187// Helpers used when computing which overlapping collapsed span
188// counts as the larger one.

Callers 2

constructorMethod · 0.90
updateLineFunction · 0.90

Calls 1

attachLineMethod · 0.80

Tested by

no test coverage detected