]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/java/FreezeMVector.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / elaboration / java / FreezeMVector.java
index 4b7020a8ab70fa0bba583fb6b9c14c272c8f6d9b..34d638bad02ca95c007e004bfd229f3f81c90f31 100644 (file)
@@ -1,35 +1,35 @@
-package org.simantics.scl.compiler.elaboration.java;\r
-\r
-import org.simantics.scl.compiler.common.exceptions.InternalCompilerError;\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.exceptions.MatchException;\r
-import org.simantics.scl.compiler.types.kinds.Kinds;\r
-\r
-public class FreezeMVector extends FunctionValue {\r
-    private static final TVar A = Types.var(Kinds.STAR);  \r
-    \r
-    public FreezeMVector() {\r
-        super(new TVar[] {A}, Types.PROC, Types.vector(A), Types.mvector(A));\r
-    }\r
-    \r
-    @Override\r
-    public Type applyExact(MethodBuilder mb, Val[] parameters) {\r
-        Val vectorVar = parameters[0];\r
-        \r
-        vectorVar.push(mb);        \r
-        \r
-        try {\r
-            Type elementType = Types.canonical(\r
-                    Types.matchApply(Types.MVECTOR, vectorVar.getType()));\r
-            return Types.vector(elementType);\r
-        } catch (MatchException e) {\r
-            throw new InternalCompilerError(e);\r
-        }\r
-    }   \r
-\r
-}\r
+package org.simantics.scl.compiler.elaboration.java;
+
+import org.simantics.scl.compiler.common.exceptions.InternalCompilerError;
+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.exceptions.MatchException;
+import org.simantics.scl.compiler.types.kinds.Kinds;
+
+public class FreezeMVector extends FunctionValue {
+    private static final TVar A = Types.var(Kinds.STAR);  
+    
+    public FreezeMVector() {
+        super(new TVar[] {A}, Types.PROC, Types.vector(A), Types.mvector(A));
+    }
+    
+    @Override
+    public Type applyExact(MethodBuilder mb, Val[] parameters) {
+        Val vectorVar = parameters[0];
+        
+        vectorVar.push(mb);        
+        
+        try {
+            Type elementType = Types.canonical(
+                    Types.matchApply(Types.MVECTOR, vectorVar.getType()));
+            return Types.vector(elementType);
+        } catch (MatchException e) {
+            throw new InternalCompilerError(e);
+        }
+    }   
+
+}