(int errorLine)
| 540 | |
| 541 | |
| 542 | protected int findErrorFile(int errorLine) { |
| 543 | for (int i = sketch.getCodeCount() - 1; i > 0; i--) { |
| 544 | SketchCode sc = sketch.getCode(i); |
| 545 | if (sc.isExtension("pde") && (sc.getPreprocOffset() <= errorLine)) { |
| 546 | // keep looping until the errorLine is past the offset |
| 547 | return i; |
| 548 | } |
| 549 | } |
| 550 | return 0; // i give up |
| 551 | } |
| 552 | |
| 553 | |
| 554 | /** |
no test coverage detected