flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From josebarra...@apache.org
Subject [24/50] git commit: [flex-falcon] [refs/heads/maven] - 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.
Date Fri, 28 Feb 2014 09:48:21 GMT
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 <erik@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/maven
Commit: f95e2d231ae60359dc386a001b91daa86090ce6d
Parents: 5835285
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Fri Dec 6 11:33:17 2013 +0100
Committer: Erik de Bruin <erik@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();


Mime
View raw message