@Override
 public Void visitBinary(final BinaryTree tree, final Void p) {
   JCBinary assign = (JCBinary) tree;
   assign.lhs = replace(assign.lhs);
   assign.rhs = replace(assign.rhs);
   return super.visitBinary(tree, p);
 }
Exemple #2
0
 public JCTree visitBinary(BinaryTree node, P p) {
   JCBinary t = (JCBinary) node;
   JCExpression lhs = copy(t.lhs, p);
   JCExpression rhs = copy(t.rhs, p);
   return M.at(t.pos).Binary(t.getTag(), lhs, rhs);
 }