(spans, marker)
| 6110 | |
| 6111 | // Search an array of spans for a span matching the given marker. |
| 6112 | function getMarkedSpanFor(spans, marker) { |
| 6113 | if (spans) for (var i = 0; i < spans.length; ++i) { |
| 6114 | var span = spans[i]; |
| 6115 | if (span.marker == marker) return span; |
| 6116 | } |
| 6117 | } |
| 6118 | // Remove a span from an array, returning undefined if no spans are |
| 6119 | // left (we don't store arrays for lines without spans). |
| 6120 | function removeMarkedSpan(spans, span) { |
no outgoing calls
no test coverage detected