MCPcopy Create free account
hub / github.com/breck7/scroll / attachMarkedSpans

Function attachMarkedSpans

external/.scrollLibs.js:1387–1395  ·  view source on GitHub ↗
(line, spans)

Source from the content-addressed store, hash-verified

1385 line.markedSpans = null
1386 }
1387 function attachMarkedSpans(line, spans) {
1388 if (!spans) {
1389 return
1390 }
1391 for (var i = 0; i < spans.length; ++i) {
1392 spans[i].marker.attachLine(line)
1393 }
1394 line.markedSpans = spans
1395 }
1396
1397 // Helpers used when computing which overlapping collapsed span
1398 // counts as the larger one.

Callers 2

LineFunction · 0.85
updateLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected