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