MCPcopy Index your code
hub / github.com/antlr/codebuff / trackDebugEvent

Method trackDebugEvent

output/java8/1.4.14/Interpreter.java:1375–1386  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1373 */
1374
1375 protected void trackDebugEvent(InstanceScope scope, InterpEvent e) {
1376// System.out.println(e);
1377 this.events.add(e);
1378 scope.events.add(e);
1379 if ( e instanceof EvalTemplateEvent ) {
1380 InstanceScope parent = scope.parent;
1381 if ( parent!=null ) {
1382 // System.out.println("add eval "+e.self.getName()+" to children of "+parent.getName());
1383 scope.parent.childEvalTemplateEvents.add((EvalTemplateEvent)e);
1384 }
1385 }
1386 }
1387
1388 public List<String> getExecutionTrace() {
1389 return executeTrace;

Callers 4

_execMethod · 0.95
indentMethod · 0.95
writeObjectNoOptionsMethod · 0.95

Calls 1

addMethod · 0.65

Tested by

no test coverage detected