]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/continuations/BranchRef.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / internal / codegen / continuations / BranchRef.java
index a607dc9403c63064380b35c504450a86ac2bcc1b..97ad71f6441d2f4d82062c9d8ff58674485a904e 100644 (file)
@@ -1,36 +1,36 @@
-package org.simantics.scl.compiler.internal.codegen.continuations;\r
-\r
-import org.simantics.scl.compiler.constants.Constant;\r
-import org.simantics.scl.compiler.internal.codegen.utils.CopyContext;\r
-\r
-public class BranchRef {\r
-    public Constant constructor;\r
-    public ContRef cont;\r
-    \r
-    public BranchRef(Constant constructor, ContRef cont) {\r
-        this.constructor = constructor;\r
-        this.cont = cont;\r
-    }\r
-    \r
-    public static BranchRef toBranchRef(Branch branch) {\r
-        return new BranchRef(branch.constructor, branch.cont.createOccurrence());\r
-    }\r
-    \r
-    public static BranchRef[] toBranchRefs(Branch[] branches) {\r
-        BranchRef[] result = new BranchRef[branches.length];\r
-        for(int i=0;i<branches.length;++i)\r
-            result[i] = toBranchRef(branches[i]);\r
-        return result;        \r
-    }\r
-    \r
-    public BranchRef copy(CopyContext context) {\r
-        return new BranchRef(constructor, context.copy(cont));\r
-    }\r
-    \r
-    public static BranchRef[] copy(CopyContext context, BranchRef[] src) {\r
-        BranchRef[] tgt = new BranchRef[src.length];\r
-        for(int i=0;i<src.length;++i)\r
-            tgt[i] = src[i].copy(context);\r
-        return tgt;\r
-    }\r
-}\r
+package org.simantics.scl.compiler.internal.codegen.continuations;
+
+import org.simantics.scl.compiler.constants.Constant;
+import org.simantics.scl.compiler.internal.codegen.utils.CopyContext;
+
+public class BranchRef {
+    public Constant constructor;
+    public ContRef cont;
+    
+    public BranchRef(Constant constructor, ContRef cont) {
+        this.constructor = constructor;
+        this.cont = cont;
+    }
+    
+    public static BranchRef toBranchRef(Branch branch) {
+        return new BranchRef(branch.constructor, branch.cont.createOccurrence());
+    }
+    
+    public static BranchRef[] toBranchRefs(Branch[] branches) {
+        BranchRef[] result = new BranchRef[branches.length];
+        for(int i=0;i<branches.length;++i)
+            result[i] = toBranchRef(branches[i]);
+        return result;        
+    }
+    
+    public BranchRef copy(CopyContext context) {
+        return new BranchRef(constructor, context.copy(cont));
+    }
+    
+    public static BranchRef[] copy(CopyContext context, BranchRef[] src) {
+        BranchRef[] tgt = new BranchRef[src.length];
+        for(int i=0;i<src.length;++i)
+            tgt[i] = src[i].copy(context);
+        return tgt;
+    }
+}