// VarDeclList --- public IrStmtList visit(AstVarDeclList n) { IrStmtList sl = new IrStmtList(); IrStmt s; for (int i = 0; i < n.Count(); i++) { s = n[i].accept(this); if (s != null) sl.add(s); } if (sl.size() > 0) return sl; else return null; }
public void visit(AstVarDeclList n) { for (int i = 0; i < n.Count(); i++) n[i].accept(this); }