(line, span)
| 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 |