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

Function addMarkedSpan

external/.scrollLibs.js:1189–1192  ·  view source on GitHub ↗
(line, span)

Source from the content-addressed store, hash-verified

1187 }
1188 // Add a span to a line.
1189 function addMarkedSpan(line, span) {
1190 line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span]
1191 span.marker.attachLine(line)
1192 }
1193
1194 // Used for the algorithm that adjusts markers for a change in the
1195 // document. These functions cut an array of spans at a given

Callers 1

markTextFunction · 0.85

Calls 1

concatMethod · 0.80

Tested by

no test coverage detected