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