@Override public Boolean visit(final DoStmt n1, final Node arg) { final DoStmt n2 = (DoStmt) arg; if (!nodeEquals(n1.getBody(), n2.getBody())) { return Boolean.FALSE; } if (!nodeEquals(n1.getCondition(), n2.getCondition())) { return Boolean.FALSE; } return Boolean.TRUE; }
@Override public void visit(final DoStmt n, final A arg) { visitComment(n.getComment(), arg); n.getBody().accept(this, arg); n.getCondition().accept(this, arg); }