X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Felaboration%2Fexpressions%2FELiteral.java;h=0d00a65d2cf3fffdd921efa963f7a8ee1d8ca812;hb=e73c1660b2f4d2a03784451e9e6afe1552b00877;hp=15201e7f0f19e935f825ffff57f974c5c1ae957e;hpb=3303fe4a3b363e88662ac75a4f7e873ddb3ab352;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/ELiteral.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/ELiteral.java index 15201e7f0..0d00a65d2 100755 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/ELiteral.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/ELiteral.java @@ -140,4 +140,12 @@ public class ELiteral extends Expression { return transformer.transform(this); } + @Override + public boolean equalsExpression(Expression expression) { + if(expression.getClass() != getClass()) + return false; + ELiteral other = (ELiteral)expression; + return value.equals(other.value); + } + }