flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - fix function call expressions
Date Thu, 22 Sep 2016 22:20:17 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 2ee9c04d0 -> 1dabb68d7


fix function call expressions


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

Branch: refs/heads/develop
Commit: 1dabb68d7f112ec20762e5f3b7ac71d944a08371
Parents: 2ee9c04
Author: Alex Harui <aharui@apache.org>
Authored: Thu Sep 22 15:20:12 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Sep 22 15:20:12 2016 -0700

----------------------------------------------------------------------
 .../internal/codegen/js/jx/IdentifierEmitter.java   | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/1dabb68d/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
index dc1549b..89f0c00 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
@@ -282,9 +282,21 @@ public class IdentifierEmitter extends JSSubEmitter implements
                     needsFormattedName = parentMemberAccessNode.getLeftOperandNode() == node;
                 }
                 startMapping(node);
-                if (parentNodeId == ASTNodeID.MemberAccessExpressionID && needsFormattedName)
+                if (parentNodeId == ASTNodeID.MemberAccessExpressionID)
                 {
-                	write(getEmitter().formatQualifiedName(qname));
+                	if (needsFormattedName)
+                	{
+                	    write(getEmitter().formatQualifiedName(qname));
+                	}
+                    else if (isCustomNamespace)
+                    {
+                    	String ns = ((FunctionDefinition)nodeDef).getNamespaceReference().resolveAETNamespace(getProject()).getName();
+                    	write("[\"" + ns + "::" + qname + "\"]");
+                    }
+                	else
+                	{
+                		write(node.getName());
+                	}
                 }
                 else if (isPackageOrFileMember)
                     write(getEmitter().formatQualifiedName(qname));


Mime
View raw message