]> gerrit.simantics Code Review - simantics/platform.git/commit
(refs #6923) Explicit export annotation for SCL modules 60/560/1
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Fri, 26 May 2017 07:53:51 +0000 (10:53 +0300)
committerHannu Niemistö <hannu.niemisto@semantum.fi>
Fri, 26 May 2017 07:53:51 +0000 (10:53 +0300)
commitb2676209b072592da3425c2efb29f51eb5c4a0e0
tree0b4ac74b502a099239bef740d2944c0d6373736e
parentf53c22ce99b7b4fab87812cf292140b08f472b35
(refs #6923) Explicit export annotation for SCL modules

Added module export list to module header. It looks like this:

module {
    export = [foo, bar]
}

When using export list, @private annotation is not supported anymore.
All symbols not exported are effectively private.

Change-Id: I7827f6cf6062388ddd06be0ab401409bd08464fe
bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/compilation/Elaboration.java
bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/annotations/AnnotationUtils.java
bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/header/ModuleHeader.java
tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/ActiveTests.java
tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/ModuleRegressionTests.java
tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ModuleExport.scl [new file with mode: 0644]