Added needed comments, reorganized some code...
[repair.git] / Repair / RepairCompiler / MCC / IR / OpExpr.java
index 55aacfc30dc9ff1323f8ad2776facaba131504d6..dfa0c1433dda72f5bff7d60a1a17d466c86609bf 100755 (executable)
@@ -78,12 +78,6 @@ public class OpExpr extends Expr {
        return rightfunctions;
     }
 
-    public void findmatch(Descriptor d, Set  s) {
-       left.findmatch(d,s);
-       if (right!=null)
-           right.findmatch(d,s);
-    }
-
     public static boolean isInt(Expr e) {
        if (e==null)
            return false;
@@ -239,6 +233,12 @@ public class OpExpr extends Expr {
        return left.usesDescriptor(d)||(right!=null&&right.usesDescriptor(d));
     }
 
+    public void findmatch(Descriptor d, Set  s) {
+       left.findmatch(d,s);
+       if (right!=null)
+           right.findmatch(d,s);
+    }
+
     public Set useDescriptor(Descriptor d) {
        HashSet newset=new HashSet();
        newset.addAll(left.useDescriptor(d));