@Override
 public boolean visit(Assignment node) {
   Expression lhs = node.getLeftHandSide();
   IVariableBinding lhsVar = TreeUtil.getVariableBinding(lhs);
   // Access order is important. If the lhs is a variable, then we must record
   // its access after visiting the rhs. Otherwise, visit both sides.
   if (lhsVar == null) {
     lhs.accept(this);
   }
   node.getRightHandSide().accept(this);
   addVariableAccess(lhsVar, node, true);
   return false;
 }
Beispiel #2
0
 @Override
 public void endVisit(Assignment node) {
   maybeAddCast(node.getRightHandSide(), node.getTypeBinding(), false);
 }