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