MCPcopy Index your code
hub / github.com/antlr/codebuff / findEventAtOutputLocation

Method findEventAtOutputLocation

output/java/1.4.14/STViz.java:440–448  ·  view source on GitHub ↗
(List<InterpEvent> events, int charIndex)

Source from the content-addressed store, hash-verified

438 }
439
440 public InterpEvent findEventAtOutputLocation(List<InterpEvent> events, int charIndex) {
441 for (InterpEvent e : events) {
442 if ( e.scope.earlyEval ) {
443 continue;
444 }
445 if ( charIndex>= e.outputStartChar && charIndex<= e.outputStopChar ) return e;
446 }
447 return null;
448 }
449
450 public static void main(String[] args) throws IOException
451 { // test rig

Callers 1

caretUpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected