You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2013/12/06 11:37:19 UTC

[9/9] git commit: [flex-falcon] [refs/heads/develop] - Fixes issue where the namespace of the package instead of the namespace of the type is prefixed in the JSDoc annotation of an interface member.

Fixes issue where the namespace of the package instead of the namespace of the type is prefixed in the JSDoc annotation of an interface member.

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/f95e2d23
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/f95e2d23
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/f95e2d23

Branch: refs/heads/develop
Commit: f95e2d231ae60359dc386a001b91daa86090ce6d
Parents: 5835285
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Fri Dec 6 11:33:17 2013 +0100
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Fri Dec 6 11:33:17 2013 +0100

----------------------------------------------------------------------
 .../internal/codegen/js/flexjs/JSFlexJSDocEmitter.java       | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f95e2d23/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSDocEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSDocEmitter.java b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSDocEmitter.java
index ab75379..235deb1 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSDocEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSDocEmitter.java
@@ -169,13 +169,7 @@ public class JSFlexJSDocEmitter extends JSGoogDocEmitter
             ITypeDefinition tdef = ((IFunctionDefinition)node.getDefinition())
                     .resolveReturnType(project);
 
-            String packageName = "";
-            if (tdef instanceof InterfaceDefinition)
-                packageName = tdef.getPackageName();
-            else
-                packageName = node.getPackageName();
-            
-            emitReturn((IFunctionNode) node, packageName);
+            emitReturn((IFunctionNode) node, tdef.getPackageName());
         }
 
         IParameterNode[] parameters = ((IFunctionNode) node).getParameterNodes();