Harbs commented on issue #203:
URL: https://github.com/apache/royale-compiler/issues/203#issuecomment-995747095


   Much improved, but I found another case where it's not being resolved:
   
   ```
   if(objXMLList.length() == 1){// no contents. Keep the background as a top 
level object
        xml.Spread.setChildren(objXMLList);
   } else {
        if(xml.Spread.Group.length() == 0){// make sure the Group actually 
exists (i.e. started off with objects)
                xml.Spread.appendChild(<Group/>);
        }
        xml.Spread.Group.setChildren(objXMLList);
   }
   ```
   
   is being compiled to:
   ```
     if (objXMLList.length() == 1) {
       xml.child('Spread')["setChildren"](objXMLList);
     } else {
       if (xml.child('Spread').child('Group')["length"]() == 0) {
         xml.child('Spread')["appendChild"](new XML( '<Group/>'));
       }
       xml.child('Spread').child('Group')["setChildren"](objXMLList);
     }
   ```
   `xml.child()` should be determined to be XML as well.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to