Fixed some analysis problems...
[repair.git] / Repair / RepairCompiler / MCC / IR / TypeDescriptor.java
index 5392f1b814876a436f0175169c5f297592a0e0f2..6609229d5bcc49cec6a7918cc07044509ab1a486 100755 (executable)
@@ -7,9 +7,20 @@ package MCC.IR;
  */
 
 public abstract class TypeDescriptor extends Descriptor {
+    static int counter=0;
+    int idnum;
+    boolean subclass;
+
+
+    public int getId() {
+       return idnum;
+    }
 
     public TypeDescriptor(String name) {
         super(name);
+       if (!(this instanceof MissingTypeDescriptor))
+           idnum=counter++;
+       subclass=false;
     }
 
     public boolean isSubtypeOf(TypeDescriptor td) {