MCPcopy Index your code
hub / github.com/csev/py4e / getMarkedSpanFor

Function getMarkedSpanFor

tools/pythonauto/static/codemirrorepl/codemirror.js:5106–5111  ·  view source on GitHub ↗
(spans, marker)

Source from the content-addressed store, hash-verified

5104
5105 // Search an array of spans for a span matching the given marker.
5106 function getMarkedSpanFor(spans, marker) {
5107 if (spans) for (var i = 0; i < spans.length; ++i) {
5108 var span = spans[i];
5109 if (span.marker == marker) return span;
5110 }
5111 }
5112 // Remove a span from an array, returning undefined if no spans are
5113 // left (we don't store arrays for lines without spans).
5114 function removeMarkedSpan(spans, span) {

Callers 3

codemirror.jsFile · 0.70
stretchSpansOverChangeFunction · 0.70
lineIsHiddenInnerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected