Add updates...
[repair.git] / Repair / RepairCompiler / MCC / IR / DotExpr.java
index 029b22c98c59770f5456c61f674de0787536fd52..6503f0b8e70e430da104d2f37e9c8d1bf337cb4a 100755 (executable)
@@ -346,6 +346,13 @@ public class DotExpr extends Expr {
            tmpfd=((ArrayDescriptor)tmpfd).getField();
        return (tmpfd.getPtr()||(tmpfd.getType() instanceof ReservedTypeDescriptor));
     }
+    
+    public boolean isPtr() {
+       FieldDescriptor tmpfd=fd;
+       if (tmpfd instanceof ArrayDescriptor)
+           tmpfd=((ArrayDescriptor)tmpfd).getField();
+       return tmpfd.getPtr();
+    }
 
     boolean typechecked=false;
     public TypeDescriptor typecheck(SemanticAnalyzer sa) {