MCPcopy
hub / github.com/witheve/Eve / getMarkedSpanFor

Function getMarkedSpanFor

src/codemirror.js:6339–6344  ·  view source on GitHub ↗
(spans, marker)

Source from the content-addressed store, hash-verified

6337
6338 // Search an array of spans for a span matching the given marker.
6339 function getMarkedSpanFor(spans, marker) {
6340 if (spans) for (var i = 0; i < spans.length; ++i) {
6341 var span = spans[i];
6342 if (span.marker == marker) return span;
6343 }
6344 }
6345 // Remove a span from an array, returning undefined if no spans are
6346 // left (we don't store arrays for lines without spans).
6347 function removeMarkedSpan(spans, span) {

Callers 3

codemirror.jsFile · 0.85
stretchSpansOverChangeFunction · 0.85
lineIsHiddenInnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected