MCPcopy Index your code
hub / github.com/processing/processing / findErrorFile

Method findErrorFile

java/src/processing/mode/java/JavaBuild.java:542–551  ·  view source on GitHub ↗
(int errorLine)

Source from the content-addressed store, hash-verified

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 /**

Callers 1

preprocessMethod · 0.95

Calls 4

isExtensionMethod · 0.95
getPreprocOffsetMethod · 0.95
getCodeCountMethod · 0.80
getCodeMethod · 0.80

Tested by

no test coverage detected