This is an automated email from the ASF dual-hosted git repository.

gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new b9d941e  Fix for #206
b9d941e is described below

commit b9d941e36b27f2eac7116252f0c30ef50b995248
Author: greg-dove <[email protected]>
AuthorDate: Fri Jan 14 17:11:39 2022 +1300

    Fix for #206
---
 .../royale/compiler/internal/codegen/js/utils/EmitterUtils.java       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/utils/EmitterUtils.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/utils/EmitterUtils.java
index f4fadd7..d5a9b0f 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/utils/EmitterUtils.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/utils/EmitterUtils.java
@@ -819,7 +819,9 @@ public class EmitterUtils
             IDefinition rightDef = rightNode.resolveType(project);
             if (rightDef != null)
             {
-                if (SemanticUtils.isXMLish(rightDef, project))
+                //we can have an identifier of '*' which resolves to ANY_TYPE 
ClassDefinition and does not resolve as isXMLish, but the Member access 
expression is if the leftNode is xmlish
+                boolean isAny = rightID == ASTNodeID.IdentifierID && 
((IIdentifierNode) rightNode).getName().equals("*");
+                if (isAny || SemanticUtils.isXMLish(rightDef, project))
                 {
                     return isLeftNodeXMLish(leftNode, project);
                 }

Reply via email to