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

Function addMarkedSpan

tools/pythonauto/static/codemirrorepl/codemirror.js:5120–5123  ·  view source on GitHub ↗
(line, span)

Source from the content-addressed store, hash-verified

5118 }
5119 // Add a span to a line.
5120 function addMarkedSpan(line, span) {
5121 line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span];
5122 span.marker.attachLine(line);
5123 }
5124
5125 // Used for the algorithm that adjusts markers for a change in the
5126 // document. These functions cut an array of spans at a given

Callers 1

markTextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected