You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/04/20 06:22:25 UTC

git commit: [flex-falcon] [refs/heads/develop] - special case XML/XMLList for JS compiles. The JS version is not dynamic. Making it dynamic introduced other problems

Repository: flex-falcon
Updated Branches:
  refs/heads/develop 9f793c69c -> 5ffbc255a


special case XML/XMLList for JS compiles.  The JS version is not dynamic.  Making it dynamic introduced other problems


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/5ffbc255
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/5ffbc255
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/5ffbc255

Branch: refs/heads/develop
Commit: 5ffbc255a0e3f86830eeaa6edb336c4d82d9316c
Parents: 9f793c6
Author: Alex Harui <ah...@apache.org>
Authored: Wed Apr 19 23:22:18 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Apr 19 23:22:18 2017 -0700

----------------------------------------------------------------------
 .../flex/compiler/internal/tree/as/ExpressionNodeBase.java     | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5ffbc255/compiler/src/main/java/org/apache/flex/compiler/internal/tree/as/ExpressionNodeBase.java
----------------------------------------------------------------------
diff --git a/compiler/src/main/java/org/apache/flex/compiler/internal/tree/as/ExpressionNodeBase.java b/compiler/src/main/java/org/apache/flex/compiler/internal/tree/as/ExpressionNodeBase.java
index 6c514b7..b54c1f0 100644
--- a/compiler/src/main/java/org/apache/flex/compiler/internal/tree/as/ExpressionNodeBase.java
+++ b/compiler/src/main/java/org/apache/flex/compiler/internal/tree/as/ExpressionNodeBase.java
@@ -21,6 +21,7 @@ package org.apache.flex.compiler.internal.tree.as;
 
 import org.apache.flex.abc.semantics.Name;
 import org.apache.flex.compiler.common.DependencyType;
+import org.apache.flex.compiler.constants.IASLanguageConstants;
 import org.apache.flex.compiler.definitions.IDefinition;
 import org.apache.flex.compiler.definitions.ITypeDefinition;
 import org.apache.flex.compiler.definitions.references.INamespaceReference;
@@ -149,6 +150,11 @@ public abstract class ExpressionNodeBase extends FixedChildrenNode implements IE
         if (type != null)
             isDynamic = type.isDynamic();
 
+        if (!isDynamic)
+        {
+        	String qName = type.getQualifiedName();
+        	isDynamic = qName.equals(IASLanguageConstants.XML) || qName.equals(IASLanguageConstants.XMLList);
+        }
         return isDynamic;
     }