Fix the bug of assignment conversion: 'short s = 12' should be allowed. And for such...
[IRC.git] / Robust / src / IR / Tree / ExpressionNode.java
index b6e4a476e71cf9ca8bf5cf816f8a918f097eb825..1b80cc354cf79e616ed9a83902998abe3a0d819d 100644 (file)
@@ -2,6 +2,8 @@ package IR.Tree;
 import IR.TypeDescriptor;
 
 public class ExpressionNode extends TreeNode {
+  Long eval = null;
+  
   public TypeDescriptor getType() {
     throw new Error();
   }
@@ -9,4 +11,12 @@ public class ExpressionNode extends TreeNode {
   public String printNode(int indentlevel) {
     return null;
   }
+  
+  public Long evaluate() {
+    throw new Error();
+  }
+  
+  public Long getEval() {
+    return this.eval;
+  }
 }