]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/EConstant.java
Merged changes from feature/scl to master.
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / elaboration / expressions / EConstant.java
index 590cbbd96bf75ab80fd0d7d674b7c47d9164e6d6..068c6c8741629ef58d5f0b3a508ec3c6439aa5c9 100755 (executable)
@@ -232,7 +232,7 @@ public class EConstant extends Expression {
             return this;\r
         }\r
         else\r
-            return applyPUnit(context);\r
+            return applyPUnit(context.getCompilationContext());\r
     }\r
 \r
     @Override\r
@@ -283,4 +283,11 @@ public class EConstant extends Expression {
         return transformer.transform(this);\r
     }\r
 \r
+    @Override\r
+    public boolean equalsExpression(Expression expression) {\r
+        if(expression.getClass() != getClass())\r
+            return false;\r
+        EConstant other = (EConstant)expression;\r
+        return value == other.value && Types.equals(typeParameters, other.typeParameters);\r
+    }\r
 }\r