Committing changes to leftsize->rightSize, more comments, and handling
[repair.git] / Repair / RepairCompiler / MCC / IR / TypeDescriptor.java
1 package MCC.IR;
2
3 /**
4  * TypeDescriptor 
5  *
6  * represents types in the language (bit, short, etc. as well as structures)
7  */
8
9 public abstract class TypeDescriptor extends Descriptor {
10     static int counter=0;
11     int idnum;
12
13     public int getId() {
14         return idnum;
15     }
16
17     public TypeDescriptor(String name) {
18         super(name);
19         if (!(this instanceof MissingTypeDescriptor))
20             idnum=counter++;
21     }
22
23     public boolean isSubtypeOf(TypeDescriptor td) {
24         return false;
25     }
26
27     public TypeDescriptor getGenerateType() {
28         return this;
29     }
30
31     public abstract Expr getSizeExpr();
32
33 }