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)
| 1389 | */ |
| 1390 | |
| 1391 | protected void trackDebugEvent(InstanceScope scope, InterpEvent e) { |
| 1392 | // System.out.println(e); |
| 1393 | this.events.add(e); |
| 1394 | scope.events.add(e); |
| 1395 | if ( e instanceof EvalTemplateEvent) { |
| 1396 | InstanceScope parent = scope.parent; |
| 1397 | if ( parent !=null ) { |
| 1398 | // System.out.println("add eval "+e.self.getName()+" to children of "+parent.getName()); |
| 1399 | scope.parent.childEvalTemplateEvents.add((EvalTemplateEvent)e); |
| 1400 | } |
| 1401 | } |
| 1402 | } |
| 1403 | |
| 1404 | public List<String> getExecutionTrace() { |
| 1405 | return executeTrace; |
no test coverage detected