MCPcopy Create free account
hub / github.com/antlr/codebuff / findEventAtOutputLocation

Method findEventAtOutputLocation

output/java8/1.4.13/STViz.java:438–446  ·  view source on GitHub ↗
(List<InterpEvent> events, int charIndex)

Source from the content-addressed store, hash-verified

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

Callers 1

caretUpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected