Added needed comments, reorganized some code...
[repair.git] / Repair / RepairCompiler / MCC / IR / DotExpr.java
index 9361d5e8af95602663d3c1a8d70c31fbf83cd6f6..029b22c98c59770f5456c61f674de0787536fd52 100755 (executable)
@@ -65,14 +65,6 @@ public class DotExpr extends Expr {
        return true;
     }
 
-    public void findmatch(Descriptor d, Set s) {
-       if (d==fd)
-           s.add(this);
-       left.findmatch(d,s);
-       if (intindex!=null)
-           intindex.findmatch(d,s);
-    }
-
     public Set freeVars() {
        Set lset=left.freeVars();
        Set iset=null;
@@ -108,6 +100,14 @@ public class DotExpr extends Expr {
        return name;
     }
     
+    public void findmatch(Descriptor d, Set s) {
+       if (d==fd)
+           s.add(this);
+       left.findmatch(d,s);
+       if (intindex!=null)
+           intindex.findmatch(d,s);
+    }
+
     public Set useDescriptor(Descriptor d) {
        HashSet newset=new HashSet();
        if (d==fd)