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)
| 1350 | */ |
| 1351 | |
| 1352 | protected void trackDebugEvent(InstanceScope scope, InterpEvent e) { |
| 1353 | // System.out.println(e); |
| 1354 | this.events.add(e); |
| 1355 | scope.events.add(e); |
| 1356 | if ( e instanceof EvalTemplateEvent ) { |
| 1357 | InstanceScope parent = scope.parent; |
| 1358 | if ( parent!=null ) { |
| 1359 | // System.out.println("add eval "+e.self.getName()+" to children of "+parent.getName()); |
| 1360 | scope.parent.childEvalTemplateEvents.add((EvalTemplateEvent)e); |
| 1361 | } |
| 1362 | } |
| 1363 | } |
| 1364 | |
| 1365 | public List<String> getExecutionTrace() { |
| 1366 | return executeTrace; |
no test coverage detected