On 8/24/15, 8:07 AM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote:
> > > >> I’d have to dig into it, but yes, I think addDependency gets called >>quite >> often before we start walking the tree. But once you asked the >>question, >> it did occur to me that we do call into the resolving code during the >> walk, but I don’t know if that also results in addDependency. > >Not sure I understood everything but I can't see any call before walking >the tree to FlexJSProject.addDependency() which is the function used to >fill the requires that are then wrote in PackageHeaderEmitter using >FlexJSProject.getRequires(), is there a function supposed to store the >library definitions before the walk ? For me, when I compile a FlexJS example like FlexJSStore, addDependency is called quite often while servicing “handleSyntaxTreeRequest” before any walking of the AST. I wonder if there is something different about the way you are compiling this code you are working on. -Alex