]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/constants/singletons/IncreaseByOne.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / constants / singletons / IncreaseByOne.java
index 3d2878a480fc82d09beac7d88fb1bc3a4b2c2b5f..f174512fd28d529cf3572ad7a588d84006c4b13a 100644 (file)
@@ -1,31 +1,31 @@
-package org.simantics.scl.compiler.constants.singletons;\r
-\r
-import org.objectweb.asm.Opcodes;\r
-import org.simantics.scl.compiler.constants.FunctionValue;\r
-import org.simantics.scl.compiler.internal.codegen.references.Val;\r
-import org.simantics.scl.compiler.internal.codegen.utils.MethodBuilder;\r
-import org.simantics.scl.compiler.types.TVar;\r
-import org.simantics.scl.compiler.types.Type;\r
-import org.simantics.scl.compiler.types.Types;\r
-\r
-public class IncreaseByOne extends FunctionValue {\r
-\r
-    public static final IncreaseByOne INSTANCE = new IncreaseByOne();\r
-    \r
-    private IncreaseByOne() {\r
-        super(TVar.EMPTY_ARRAY, Types.NO_EFFECTS, Types.INTEGER, Types.INTEGER);\r
-    }\r
-    \r
-    @Override\r
-    public Type applyExact(MethodBuilder mb, Val[] parameters) {\r
-        parameters[0].push(mb);\r
-        mb.loadConstant(1);\r
-        mb.math(Opcodes.IADD);\r
-        return Types.INTEGER;\r
-    }\r
-\r
-    @Override\r
-    public String toString() {\r
-        return "increaseByOne";\r
-    }\r
-}\r
+package org.simantics.scl.compiler.constants.singletons;
+
+import org.objectweb.asm.Opcodes;
+import org.simantics.scl.compiler.constants.FunctionValue;
+import org.simantics.scl.compiler.internal.codegen.references.Val;
+import org.simantics.scl.compiler.internal.codegen.utils.MethodBuilder;
+import org.simantics.scl.compiler.types.TVar;
+import org.simantics.scl.compiler.types.Type;
+import org.simantics.scl.compiler.types.Types;
+
+public class IncreaseByOne extends FunctionValue {
+
+    public static final IncreaseByOne INSTANCE = new IncreaseByOne();
+    
+    private IncreaseByOne() {
+        super(TVar.EMPTY_ARRAY, Types.NO_EFFECTS, Types.INTEGER, Types.INTEGER);
+    }
+    
+    @Override
+    public Type applyExact(MethodBuilder mb, Val[] parameters) {
+        parameters[0].push(mb);
+        mb.loadConstant(1);
+        mb.math(Opcodes.IADD);
+        return Types.INTEGER;
+    }
+
+    @Override
+    public String toString() {
+        return "increaseByOne";
+    }
+}