]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/constants/singletons/UnsafeCoerce.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / constants / singletons / UnsafeCoerce.java
index 173076ea5398e676dbc38624afa0deddd963c289..c3111c77b199f278a7bd07c58036062d5d5365cf 100644 (file)
@@ -1,30 +1,30 @@
-package org.simantics.scl.compiler.constants.singletons;\r
-\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
-import org.simantics.scl.compiler.types.kinds.Kinds;\r
-\r
-public class UnsafeCoerce extends FunctionValue {    \r
-    private static TVar A = Types.var(Kinds.STAR);\r
-    private static TVar B = Types.var(Kinds.STAR);\r
-    public static final UnsafeCoerce INSTANCE = new UnsafeCoerce();\r
-    \r
-    private UnsafeCoerce() {\r
-        super(new TVar[] {A, B}, Types.NO_EFFECTS, B, A);\r
-    }\r
-    \r
-    @Override\r
-    public Type applyExact(MethodBuilder mb, Val[] parameters) {\r
-        mb.pushBoxed(parameters[0]);\r
-        return getReturnType();\r
-    }\r
-\r
-    @Override\r
-    public String toString() {\r
-        return "unsafeCoerce";\r
-    }\r
-}\r
+package org.simantics.scl.compiler.constants.singletons;
+
+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;
+import org.simantics.scl.compiler.types.kinds.Kinds;
+
+public class UnsafeCoerce extends FunctionValue {    
+    private static TVar A = Types.var(Kinds.STAR);
+    private static TVar B = Types.var(Kinds.STAR);
+    public static final UnsafeCoerce INSTANCE = new UnsafeCoerce();
+    
+    private UnsafeCoerce() {
+        super(new TVar[] {A, B}, Types.NO_EFFECTS, B, A);
+    }
+    
+    @Override
+    public Type applyExact(MethodBuilder mb, Val[] parameters) {
+        mb.pushBoxed(parameters[0]);
+        return getReturnType();
+    }
+
+    @Override
+    public String toString() {
+        return "unsafeCoerce";
+    }
+}