(line)
| 364 | } |
| 365 | |
| 366 | function findEnclosingPathForLine(line) { |
| 367 | var found = null; |
| 368 | raph.forEach(function (e) { |
| 369 | if ("isHandleDecorator" in e) { |
| 370 | if (cmGetLineNumber(e.h1) <= line && cmGetLineNumber(e.h2) >= line) { |
| 371 | if (found == null) |
| 372 | found = e; |
| 373 | else if (Math.abs(cmGetLineNumber(found.h1) - cmGetLineNumber(found.h2)) > Math.abs(cmGetLineNumber(e.h1) - cmGetLineNumber(e.h2))) |
| 374 | found = e |
| 375 | } |
| 376 | } |
| 377 | }); |
| 378 | return found; |
| 379 | } |
| 380 | |
| 381 | raph.clear(); |
| 382 |
no test coverage detected