]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/translation/ChildGraphTranslator.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.graph.compiler / src / org / simantics / graph / compiler / internal / translation / ChildGraphTranslator.java
index c543aa980658b70dbbdd2299d4e669e896899e9d..826904493337f39885ac3efa84c7ebb04c26fcaf 100644 (file)
@@ -1,35 +1,35 @@
-package org.simantics.graph.compiler.internal.translation;\r
-\r
-import gnu.trove.list.array.TIntArrayList;\r
-\r
-import org.antlr.runtime.tree.Tree;\r
-import org.simantics.graph.store.GraphStore;\r
-\r
-public class ChildGraphTranslator extends GraphTranslator {\r
-\r
-       TIntArrayList correspondences = new TIntArrayList();    \r
-       GraphTranslator parent;\r
-               \r
-       public ChildGraphTranslator(GraphTranslator parent, GraphStore store) {\r
-               super(parent.paths, parent.problems, store);\r
-               this.parent = parent;\r
-       }\r
-\r
-       @Override\r
-       public int getVariable(Tree place, String text) {\r
-               if(variables.containsKey(text))\r
-                       return variables.get(text);\r
-               else {\r
-                       correspondences.add(parent.getVariable(place, text));                   \r
-                       int id = identities.newResource();\r
-                       correspondences.add(id);\r
-                       variables.put(text, id);                \r
-                       locate(id, place);\r
-                       return id;\r
-               }\r
-       }       \r
-       \r
-       public int[] getCorrespondences() {\r
-               return correspondences.toArray();\r
-       }\r
-}\r
+package org.simantics.graph.compiler.internal.translation;
+
+import gnu.trove.list.array.TIntArrayList;
+
+import org.antlr.runtime.tree.Tree;
+import org.simantics.graph.store.GraphStore;
+
+public class ChildGraphTranslator extends GraphTranslator {
+
+       TIntArrayList correspondences = new TIntArrayList();    
+       GraphTranslator parent;
+               
+       public ChildGraphTranslator(GraphTranslator parent, GraphStore store) {
+               super(parent.paths, parent.problems, store);
+               this.parent = parent;
+       }
+
+       @Override
+       public int getVariable(Tree place, String text) {
+               if(variables.containsKey(text))
+                       return variables.get(text);
+               else {
+                       correspondences.add(parent.getVariable(place, text));                   
+                       int id = identities.newResource();
+                       correspondences.add(id);
+                       variables.put(text, id);                
+                       locate(id, place);
+                       return id;
+               }
+       }       
+       
+       public int[] getCorrespondences() {
+               return correspondences.toArray();
+       }
+}