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

Method findEventAtOutputLocation

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

Source from the content-addressed store, hash-verified

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

Callers 1

caretUpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected