MCPcopy Index your code
hub / github.com/benfry/processing4 / findErrorFile

Method findErrorFile

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected