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=0d4651d4852530452959897f87aca2a2f1b7f01d;hp=408eb01e561cf96fc5bf020b04e574cadf0e030d;hb=3216affb4ed0e73a5601be223638f4f1a41fb26a;hpb=96d8636ef6a7af10b65ad0878bebeee51891790d 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 408eb01e5..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 @@ -159,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; + } }