Exemple #1
0
 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);
 }