Method
findEventAtOutputLocation
(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 |
Tested by
no test coverage detected