You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/08/06 22:31:44 UTC
[royale-compiler] branch develop updated: handle fx:Array in
top-level of fx:Declarations
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 <ah...@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;