Repository: flex-falcon Updated Branches: refs/heads/develop 15e753a7c -> fb2dc7a94
compiler.jx: externc can now handle typedefs inside packages Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/0c731405 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/0c731405 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/0c731405 Branch: refs/heads/develop Commit: 0c731405da7569ab7b745c0cedb706afd033da5d Parents: 15e753a Author: Josh Tynjala <joshtynj...@apache.org> Authored: Wed Apr 20 09:35:14 2016 -0700 Committer: Josh Tynjala <joshtynj...@apache.org> Committed: Wed Apr 20 09:35:14 2016 -0700 ---------------------------------------------------------------------- .../internal/codegen/externals/pass/CollectTypesPass.java | 10 ++++++++++ 1 file changed, 10 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/0c731405/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/pass/CollectTypesPass.java ---------------------------------------------------------------------- diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/pass/CollectTypesPass.java b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/pass/CollectTypesPass.java index 8ddde76..44a9cc4 100644 --- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/pass/CollectTypesPass.java +++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/pass/CollectTypesPass.java @@ -92,6 +92,16 @@ public class CollectTypesPass extends AbstractCompilerPass } } } + else + { + comment = container.getJSDocInfo(); + boolean isConstructor = comment != null + && (comment.getTypedefType() != null); + if (isConstructor) + { + model.addTypeDef(container, container.getQualifiedName()); + } + } } private void visitFunction(Node child)