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)
| 1408 | */ |
| 1409 | |
| 1410 | protected void trackDebugEvent(InstanceScope scope, InterpEvent e) { |
| 1411 | // System.out.println(e); |
| 1412 | this.events.add(e); |
| 1413 | scope.events.add(e); |
| 1414 | if ( e instanceof EvalTemplateEvent) { |
| 1415 | InstanceScope parent = scope.parent; |
| 1416 | if ( parent !=null ) { |
| 1417 | // System.out.println("add eval "+e.self.getName()+" to children of "+parent.getName()); |
| 1418 | scope.parent.childEvalTemplateEvents.add((EvalTemplateEvent)e); |
| 1419 | } |
| 1420 | } |
| 1421 | } |
| 1422 | |
| 1423 | public List<String> getExecutionTrace() { |
| 1424 | return executeTrace; |
no test coverage detected