Example #1
0
 public void traverse(VisitorIF<?> visitor) throws Exception {
   if (test != null) test.accept(visitor);
   if (body != null) {
     for (PythonTree t : body) {
       if (t != null) t.accept(visitor);
     }
   }
   if (orelse != null) {
     for (PythonTree t : orelse) {
       if (t != null) t.accept(visitor);
     }
   }
 }
Example #2
0
 public void traverse(VisitorIF visitor) throws Exception {
   if (body != null) body.accept(visitor);
 }