]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/parser/ast/AstList.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.spreadsheet.graph / src / org / simantics / spreadsheet / graph / parser / ast / AstList.java
index 55cba4237478b8cc236c63cdb4e25303674592d4..c889483f469ce7588bc5f94ed9beb9361e9ed700 100644 (file)
@@ -1,43 +1,43 @@
-package org.simantics.spreadsheet.graph.parser.ast;\r
-\r
-import java.util.ArrayList;\r
-\r
-abstract public class AstList implements AstValue {\r
-\r
-       public final AstValue left;\r
-\r
-       public ArrayList<String> rightOps;\r
-       public ArrayList<AstValue> rightValues;\r
-       \r
-       public AstList(AstValue left) {\r
-               this.left = left;\r
-       }\r
-       \r
-       public int rightCount() {\r
-               if(rightValues == null) return 0;\r
-               return rightValues.size();\r
-       }\r
-       \r
-       public String rightOp(int index) {\r
-               return rightOps.get(index);\r
-       }\r
-       \r
-       public AstValue rightValue(int index) {\r
-               return rightValues.get(index);\r
-       }\r
-\r
-       public void add(String op, AstValue value) {\r
-               if(rightValues == null) {\r
-                       rightOps = new ArrayList<>(); \r
-                       rightValues = new ArrayList<>();\r
-               }\r
-               rightOps.add(op);\r
-               rightValues.add(value);\r
-       }\r
-\r
-       public AstValue simplify() {\r
-               if(rightValues == null) return left;\r
-               return this;\r
-       }\r
-\r
-}\r
+package org.simantics.spreadsheet.graph.parser.ast;
+
+import java.util.ArrayList;
+
+abstract public class AstList implements AstValue {
+
+       public final AstValue left;
+
+       public ArrayList<String> rightOps;
+       public ArrayList<AstValue> rightValues;
+       
+       public AstList(AstValue left) {
+               this.left = left;
+       }
+       
+       public int rightCount() {
+               if(rightValues == null) return 0;
+               return rightValues.size();
+       }
+       
+       public String rightOp(int index) {
+               return rightOps.get(index);
+       }
+       
+       public AstValue rightValue(int index) {
+               return rightValues.get(index);
+       }
+
+       public void add(String op, AstValue value) {
+               if(rightValues == null) {
+                       rightOps = new ArrayList<>(); 
+                       rightValues = new ArrayList<>();
+               }
+               rightOps.add(op);
+               rightValues.add(value);
+       }
+
+       public AstValue simplify() {
+               if(rightValues == null) return left;
+               return this;
+       }
+
+}