]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/EIntegerLiteral.java
Merge "List the unsatisfied dependencies in CanvasContext"
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / elaboration / expressions / EIntegerLiteral.java
index 7ccd66d0a3b8240fd25d70b37bb56bca94e07cf5..0834c49053a76813ee1cc0683d7d5098769972c7 100755 (executable)
@@ -1,11 +1,8 @@
 package org.simantics.scl.compiler.elaboration.expressions;\r
 \r
 \r
-import gnu.trove.map.hash.TObjectIntHashMap;\r
-import gnu.trove.set.hash.THashSet;\r
-import gnu.trove.set.hash.TIntHashSet;\r
-\r
 import org.simantics.scl.compiler.common.exceptions.InternalCompilerError;\r
+import org.simantics.scl.compiler.common.names.Names;\r
 import org.simantics.scl.compiler.constants.DoubleConstant;\r
 import org.simantics.scl.compiler.constants.FloatConstant;\r
 import org.simantics.scl.compiler.constants.IntegerConstant;\r
@@ -20,6 +17,10 @@ import org.simantics.scl.compiler.types.Type;
 import org.simantics.scl.compiler.types.Types;\r
 import org.simantics.scl.compiler.types.exceptions.MatchException;\r
 \r
+import gnu.trove.map.hash.TObjectIntHashMap;\r
+import gnu.trove.set.hash.THashSet;\r
+import gnu.trove.set.hash.TIntHashSet;\r
+\r
 public class EIntegerLiteral extends SimplifiableExpression {\r
     public String value;\r
     EVariable constraint;\r
@@ -90,7 +91,7 @@ public class EIntegerLiteral extends SimplifiableExpression {
             if(primitive != null)\r
                 return primitive;\r
             return context.apply(\r
-                    context.getConstant(SimplificationContext.FROM_INTEGER, getType()),\r
+                    context.getConstant(Names.Prelude_fromInteger, getType()),\r
                     constraint.simplify(context),\r
                     context.literal(new IntegerConstant(Integer.parseInt(value)))\r
                     );\r