flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [3/8] git commit: [flex-falcon] [refs/heads/develop] - handle fully qualified names to function identifiers
Date Thu, 08 Oct 2015 19:06:21 GMT
handle fully qualified names to function identifiers


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

Branch: refs/heads/develop
Commit: 2a0442188950e0e0f09399cd82050616e9671932
Parents: f60b015
Author: Alex Harui <aharui@apache.org>
Authored: Thu Oct 8 11:53:26 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Oct 8 11:53:26 2015 -0700

----------------------------------------------------------------------
 .../internal/codegen/js/jx/IdentifierEmitter.java        | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/2a044218/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
index c2c2963..704b77d 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
@@ -123,7 +123,16 @@ public class IdentifierEmitter extends JSSubEmitter implements
         if (emitName)
         {
             if (nodeDef != null)
-                write(getEmitter().formatQualifiedName(nodeDef.getQualifiedName()));
+            {
+            	// this can be optimized but this way lets
+            	// us breakpoint on the node.getName() to make
+            	// sure it is ok to always use the short name in an MAE
+            	String qname = nodeDef.getQualifiedName();
+            	if (parentNodeId == ASTNodeID.MemberAccessExpressionID)
+            		write(node.getName());
+            	else
+            		write(getEmitter().formatQualifiedName(qname));
+            }
             else
                 write(node.getName());
         }


Mime
View raw message