(spans, marker)
| 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) { |
no outgoing calls
no test coverage detected