コード例 #1
0
 @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;
 }
コード例 #2
0
ファイル: CastResolver.java プロジェクト: hellojory/j2objc
 @Override
 public void endVisit(Assignment node) {
   maybeAddCast(node.getRightHandSide(), node.getTypeBinding(), false);
 }