X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Felaboration%2Fmodules%2FSCLValue.java;h=08b03d04feddc900ae1994bbbe6597ab09b1f1f9;hp=2d9ed6fe1d5db38ad94ad92d6dc4e91e47b01112;hb=1b969e34d51e9a17a0038367a29b93c2822495ed;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07 diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/modules/SCLValue.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/modules/SCLValue.java index 2d9ed6fe1..08b03d04f 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/modules/SCLValue.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/modules/SCLValue.java @@ -35,6 +35,7 @@ public final class SCLValue implements Typed { private ArrayList properties = new ArrayList(2); public String documentation; public long definitionLocation = Locations.NO_LOCATION; + public String[] parameterNames; public SCLValue(Name name) { this.name = name; @@ -144,6 +145,13 @@ public final class SCLValue implements Typed { return true; return false; } + + public String isDeprecated() { + for(SCLValueProperty property : properties) + if(property instanceof DeprecatedProperty) + return ((DeprecatedProperty)property).description; + return null; + } public void setDocumentation(String documentation) { this.documentation = documentation; @@ -152,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; + } }