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

Method findEventAtOutputLocation

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

Source from the content-addressed store, hash-verified

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

Callers 1

caretUpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected