>> [#Insert 'goog.requires()'; the equivalent of 'import' in AS] > > We should take care to only generate goog.requires() for imports that are > requires is the equivalent of import. We just need import statements to > resolve not-fully-qualified identifiers, the dependencies have to > be tracked seperately.
You are correct that calling it 'equivalent' has implications I didn't mean it to have. The 'goog.require' statements (the way we use them) help the Closure Builder figure out dependencies, which allow it to reach the maximum level of optimisation/minification. Only the fully qualified namespaces of classes actually referenced in the code should be 'required'. I therefor suggest that we shouldn't parse the 'imports' section of the AS class, but work from type information available during compilation, if there is such a thing... EdB -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl