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=f82ae5101910bfe4c84c165392dc209f145fdf78;hb=refs%2Fchanges%2F39%2F1339%2F1;hp=3f65de3b6f0a19249c99e49d28fc2f30ffa4ce0e;hpb=6dfe20b0f514b91337fcac4de0267ffd8268be07;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 3f65de3b6..f82ae5101 100644 --- 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 @@ -19,9 +19,6 @@ import org.simantics.scl.compiler.top.ExpressionInterpretationContext; import org.simantics.scl.compiler.types.exceptions.MatchException; import org.simantics.scl.compiler.types.util.TypeUnparsingContext; -import gnu.trove.map.hash.TObjectIntHashMap; -import gnu.trove.set.hash.TIntHashSet; - public class ELiteral extends Expression { Constant value; @@ -38,11 +35,6 @@ public class ELiteral extends Expression { public Constant getValue() { return value; } - - @Override - public void collectVars(TObjectIntHashMap allVars, - TIntHashSet vars) { - } @Override public Set getFreeVariables() { @@ -127,4 +119,8 @@ public class ELiteral extends Expression { return value.equals(other.value); } + @Override + public boolean isConstructorApplication() { + return true; + } }