(cm, lineN)
| 2372 | |
| 2373 | // Find a line view that corresponds to the given line number. |
| 2374 | function findViewForLine(cm, lineN) { |
| 2375 | if (lineN >= cm.display.viewFrom && lineN < cm.display.viewTo) |
| 2376 | { return cm.display.view[findViewIndex(cm, lineN)] } |
| 2377 | var ext = cm.display.externalMeasured; |
| 2378 | if (ext && lineN >= ext.lineN && lineN < ext.lineN + ext.size) |
| 2379 | { return ext } |
| 2380 | } |
| 2381 | |
| 2382 | // Measurement can be split in two steps, the set-up work that |
| 2383 | // applies to the whole line, and the measurement of the actual |
no test coverage detected