(cm, lineN)
| 1503 | |
| 1504 | // Find a line view that corresponds to the given line number. |
| 1505 | function findViewForLine(cm, lineN) { |
| 1506 | if (lineN >= cm.display.viewFrom && lineN < cm.display.viewTo) |
| 1507 | return cm.display.view[findViewIndex(cm, lineN)]; |
| 1508 | var ext = cm.display.externalMeasured; |
| 1509 | if (ext && lineN >= ext.lineN && lineN < ext.lineN + ext.size) |
| 1510 | return ext; |
| 1511 | } |
| 1512 | |
| 1513 | // Measurement can be split in two steps, the set-up work that |
| 1514 | // applies to the whole line, and the measurement of the actual |
no test coverage detected