Exemple #1
0
 // 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;
 }
Exemple #2
0
 public void visit(AstVarDeclList n)
 {
     for (int i = 0; i < n.Count(); i++)
         n[i].accept(this);
 }