(line, span)
| 1187 | } |
| 1188 | // Add a span to a line. |
| 1189 | function addMarkedSpan(line, span) { |
| 1190 | line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span] |
| 1191 | span.marker.attachLine(line) |
| 1192 | } |
| 1193 | |
| 1194 | // Used for the algorithm that adjusts markers for a change in the |
| 1195 | // document. These functions cut an array of spans at a given |