Checking in some checks...
[repair.git] / Repair / RepairCompiler / MCC / IR / DotExpr.java
index 1c5fb47f0055c7ec9c88d7d9b599a21e390939f0..fbd217d5cbcc20d4bc100e9589a1019cf4c19be8 100755 (executable)
@@ -282,6 +282,13 @@ public class DotExpr extends Expr {
         }
     }
 
+    public boolean isValue() {
+       FieldDescriptor tmpfd=fd;
+       if (tmpfd instanceof ArrayDescriptor)
+           tmpfd=((ArrayDescriptor)tmpfd).getField();
+       return (tmpfd.getPtr()||(tmpfd.getType() instanceof ReservedTypeDescriptor));
+    }
+
     boolean typechecked=false;
     public TypeDescriptor typecheck(SemanticAnalyzer sa) {
        if (typechecked)