Do you mean, the FlexJSProject.addDependency() should be called while the AST is generated for the libraries dependencies or maybe be a pass for collecting them as we do in the externc ?
Frédéric THOMAS > From: aha...@adobe.com > To: dev@flex.apache.org > Subject: Re: [FlexJS] Framework using externs (was: Setup Error) > Date: Sun, 23 Aug 2015 21:15:36 +0000 > > > > On 8/23/15, 10:59 AM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote: > > >Hi Alex or Mike, > > > >Thanks for the advice, I've been checking that my lib was set in > >library-path but still the same, actually there's something that make me > >confused, maybe you can enlighten me: > > > >It seems to me the requires are collected during the emit phase as I can > >see FlexJSProject.addDependency() are called along the call chain from > >the emitPackageContents() if I followed well. > >So, given the emitPackageHeader() is called even before, how the > >dependencies for a same CU which are collected after could be included ? > > Hmm. I wonder if we are missing some dependencies? But, IIRC, some/most > should still be there as things get resolved as the AST is generated. > > -Alex >