(int errorLine)
| 413 | |
| 414 | |
| 415 | protected int findErrorFile(int errorLine) { |
| 416 | for (int i = sketch.getCodeCount() - 1; i > 0; i--) { |
| 417 | SketchCode sc = sketch.getCode(i); |
| 418 | if (sc.isExtension("pde") && (sc.getPreprocOffset() <= errorLine)) { |
| 419 | // keep looping until the errorLine is past the offset |
| 420 | return i; |
| 421 | } |
| 422 | } |
| 423 | return 0; // i give up |
| 424 | } |
| 425 | |
| 426 | |
| 427 | /** |
nothing calls this directly
no test coverage detected