@Override public Void visitCompoundAssignment(final CompoundAssignmentTree tree, final Void p) { JCAssignOp assignOp = (JCAssignOp) tree; assignOp.lhs = replace(assignOp.lhs); assignOp.rhs = replace(assignOp.rhs); return super.visitCompoundAssignment(tree, p); }
public void visitAssignop(JCAssignOp tree) { try { open(prec, TreeInfo.assignopPrec); printExpr(tree.lhs, TreeInfo.assignopPrec + 1); print(" " + operatorName(tree.getTag() - JCTree.ASGOffset) + "= "); printExpr(tree.rhs, TreeInfo.assignopPrec); close(prec, TreeInfo.assignopPrec); } catch (IOException e) { throw new UncheckedIOException(e); } }
public void visitAssignop(JCAssignOp node) { node.operator = null; super.visitAssignop(node); }
public JCTree visitCompoundAssignment(CompoundAssignmentTree node, P p) { JCAssignOp t = (JCAssignOp) node; JCTree lhs = copy(t.lhs, p); JCTree rhs = copy(t.rhs, p); return M.at(t.pos).Assignop(t.getTag(), lhs, rhs); }