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 70f43ea  Fix for <fx:Object> nodes inside dataProvider nodes (and any 
similar 'Array'-like parent nodes in mxml). Fixes #196
70f43ea is described below

commit 70f43ea6c8179b2f4163a2c4147865e7f582ebe4
Author: greg-dove <[email protected]>
AuthorDate: Thu Nov 18 21:58:55 2021 +1300

    Fix for <fx:Object> nodes inside dataProvider nodes (and any similar 
'Array'-like parent nodes in mxml). Fixes #196
---
 .../compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
 
b/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
index a0a97ac..4b75372 100644
--- 
a/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
+++ 
b/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
@@ -3153,7 +3153,7 @@ public class MXMLClassDirectiveProcessor extends 
ClassDirectiveProcessor
                     {
                         final IASNode child = arrayNode.getChild(i);
                         ASTNodeID nodeID = child.getNodeID();
-                        if (nodeID == ASTNodeID.MXMLArrayID || nodeID == 
ASTNodeID.MXMLInstanceID)
+                        if (nodeID == ASTNodeID.MXMLArrayID || nodeID == 
ASTNodeID.MXMLInstanceID || nodeID ==ASTNodeID.MXMLObjectID)
                         {
                             isSimple = false;
                             break;

Reply via email to