]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/ERange.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / elaboration / expressions / ERange.java
old mode 100755 (executable)
new mode 100644 (file)
index 2eaa5a2..3ea3d5e
@@ -1,39 +1,39 @@
-package org.simantics.scl.compiler.elaboration.expressions;\r
-\r
-import org.simantics.scl.compiler.common.names.Names;\r
-import org.simantics.scl.compiler.elaboration.contexts.TranslationContext;\r
-import org.simantics.scl.compiler.elaboration.modules.SCLValue;\r
-import org.simantics.scl.compiler.errors.Locations;\r
-\r
-public class ERange extends ASTExpression {\r
-    Expression from;\r
-    Expression to;\r
-    \r
-    public ERange(Expression from, Expression to) {\r
-        this.from = from;\r
-        this.to = to;\r
-    }\r
-    \r
-    @Override\r
-    public Expression resolve(TranslationContext context) {\r
-        from = from.resolve(context);\r
-        to = to.resolve(context);\r
-        SCLValue rangeFunction = context.getEnvironment().getValue(Names.Prelude_range);\r
-        return new EApply(location, new EConstant(rangeFunction), from, to);\r
-    }    \r
-    \r
-    @Override\r
-    public void setLocationDeep(long loc) {\r
-        if(location == Locations.NO_LOCATION) {\r
-            location = loc;\r
-            from.setLocationDeep(loc);\r
-            to.setLocationDeep(loc);\r
-        }\r
-    }\r
-    \r
-    @Override\r
-    public Expression accept(ExpressionTransformer transformer) {\r
-        return transformer.transform(this);\r
-    }\r
-\r
-}\r
+package org.simantics.scl.compiler.elaboration.expressions;
+
+import org.simantics.scl.compiler.common.names.Names;
+import org.simantics.scl.compiler.elaboration.contexts.TranslationContext;
+import org.simantics.scl.compiler.elaboration.modules.SCLValue;
+import org.simantics.scl.compiler.errors.Locations;
+
+public class ERange extends ASTExpression {
+    Expression from;
+    Expression to;
+    
+    public ERange(Expression from, Expression to) {
+        this.from = from;
+        this.to = to;
+    }
+    
+    @Override
+    public Expression resolve(TranslationContext context) {
+        from = from.resolve(context);
+        to = to.resolve(context);
+        SCLValue rangeFunction = context.getEnvironment().getValue(Names.Prelude_range);
+        return new EApply(location, new EConstant(rangeFunction), from, to);
+    }    
+    
+    @Override
+    public void setLocationDeep(long loc) {
+        if(location == Locations.NO_LOCATION) {
+            location = loc;
+            from.setLocationDeep(loc);
+            to.setLocationDeep(loc);
+        }
+    }
+    
+    @Override
+    public Expression accept(ExpressionTransformer transformer) {
+        return transformer.transform(this);
+    }
+
+}