For every event, we track in overall #events list and in self's InstanceScope#events list so that each template has a list of events used to create it. If e is an EvalTemplateEvent, store in parent's InstanceScope#childEvalTemplateEvents list for {@lin
(InstanceScope scope, InterpEvent e)
| 1404 | */ |
| 1405 | |
| 1406 | protected void trackDebugEvent(InstanceScope scope, InterpEvent e) { |
| 1407 | // System.out.println(e); |
| 1408 | this.events.add(e); |
| 1409 | scope.events.add(e); |
| 1410 | if ( e instanceof EvalTemplateEvent) { |
| 1411 | InstanceScope parent = scope.parent; |
| 1412 | if ( parent !=null ) { |
| 1413 | // System.out.println("add eval "+e.self.getName()+" to children of "+parent.getName()); |
| 1414 | scope.parent.childEvalTemplateEvents.add((EvalTemplateEvent)e); |
| 1415 | } |
| 1416 | } |
| 1417 | } |
| 1418 | |
| 1419 | public List<String> getExecutionTrace() { |
| 1420 | return executeTrace; |
no test coverage detected