On 8/10/15, 6:19 PM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote:
>I'm trying now to compile the AS files in conditional compilation with >COMPILE::AS3, because the first phase of the compilation is COMPILE::JS, >I have JS.swc in my library-path. > >I was aware that some conflicts could occur for example the Event class, >so I had the idea to introduce a new configuration variable >"exclude-native-js-libraries" that the compiler client set to true when >is in phase to COMPILE::AS3, the idea behind was to allow me, after the >configuration merge, at configuration validation time, to remove the >Native JS libraries (externs) from the list of library-path and >external-library-path, at the moment, I check the path contains "js/libs" >only, it is to be improved. > >The code bellow shows how I do and when I inspect the ConfigurationBuffer >at the end of the method, the JS.swc is removed as expected, the problem >is that I still had some AmbiguousDefinition, after a bit of debug, >checking at the scope file, I've seen one of them was in the JS.swc, it >was included despite I removed it from the merged ConfigurationBuffer. > >What did I miss ? No idea. You did remind me that I never finished investigating whether there was a valid AS3 syntax for disambiguating a class without a package and a class with a package. Maybe the best thing for you right now is to not worry about the conflict and see if there are other issues? Or does this issue block you somehow? -Alex