This is an automated email from the ASF dual-hosted git repository. aharui 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 d9a185a handle fx:Array in top-level of fx:Declarations d9a185a is described below commit d9a185a4814a4da9eff0d9e999f2516a5e939197 Author: Alex Harui <aha...@apache.org> AuthorDate: Mon Aug 6 15:31:35 2018 -0700 handle fx:Array in top-level of fx:Declarations --- .../compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java index 60f7a48..53f4636 100644 --- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java +++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.java @@ -2458,6 +2458,12 @@ public class MXMLRoyaleEmitter extends MXMLEmitter implements @Override public void emitArray(IMXMLArrayNode node) { + if (node.getParent() instanceof IMXMLDeclarationsNode) + { + // treat this like an instance. fx:Array at the top level of a Declaration defines a new property with a structure + emitInstance(node); + return; + } moveDown(false, null, null); boolean isSimple = true;