X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Felaboration%2Fmodules%2FSCLValue.java;h=0d4651d4852530452959897f87aca2a2f1b7f01d;hb=e515d1fda563f0fa3b8b71f9099696cf49a06d25;hp=2d9ed6fe1d5db38ad94ad92d6dc4e91e47b01112;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git 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..0d4651d48 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 @@ -144,6 +144,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 +159,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; + } }