Example #1
0
  // This is a helper used by both the Function and Script cases
  private void instrumentStmtList(List<Stmt> stmts) {
    // insert the counter initialization statement as the first statement,
    // and the counter display as the last statement
    stmts.insertChild(init(), 0);
    stmts.addChild(display());

    // recurse on children
    caseASTNode(stmts);

    skip.clear();
  }