IR
[repair.git] / Repair / RepairCompiler / MCC / IR / TypeDescriptor.java
diff --git a/Repair/RepairCompiler/MCC/IR/TypeDescriptor.java b/Repair/RepairCompiler/MCC/IR/TypeDescriptor.java
new file mode 100755 (executable)
index 0000000..5392f1b
--- /dev/null
@@ -0,0 +1,25 @@
+package MCC.IR;
+
+/**
+ * TypeDescriptor 
+ *
+ * represents types in the language (bit, short, etc. as well as structures)
+ */
+
+public abstract class TypeDescriptor extends Descriptor {
+
+    public TypeDescriptor(String name) {
+        super(name);
+    }
+
+    public boolean isSubtypeOf(TypeDescriptor td) {
+        return false;
+    }
+
+    public TypeDescriptor getGenerateType() {
+        return this;
+    }
+
+    public abstract Expr getSizeExpr();
+
+}