]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/modules/SCLValue.java
Minor refactorings related to SCL constructors
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / elaboration / modules / SCLValue.java
index 408eb01e561cf96fc5bf020b04e574cadf0e030d..08b03d04feddc900ae1994bbbe6597ab09b1f1f9 100644 (file)
@@ -35,6 +35,7 @@ public final class SCLValue implements Typed {
     private ArrayList<SCLValueProperty> properties = new ArrayList<SCLValueProperty>(2);
     public String documentation;
     public long definitionLocation = Locations.NO_LOCATION;
+    public String[] parameterNames;
     
     public SCLValue(Name name) {
         this.name = name;
@@ -159,4 +160,11 @@ public final class SCLValue implements Typed {
        public String getDocumentation() {
                return documentation;
        }
+
+    public boolean isPrivateOrDerived() {
+        for(SCLValueProperty property : properties)
+            if(property == PrivateProperty.INSTANCE || property == DerivedProperty.INSTANCE)
+                return true;
+        return false;
+    }
 }