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); } } }
public void traverse(VisitorIF visitor) throws Exception { if (body != null) body.accept(visitor); }