flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/7] git commit: [flex-falcon] [refs/heads/dual] - special case XML/XMLList for JS compiles. The JS version is not dynamic. Making it dynamic introduced other problems
Date Mon, 01 May 2017 03:12:54 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/dual 55d9fcf98 -> 8dd7f9c30


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/dual
Commit: 5ffbc255a0e3f86830eeaa6edb336c4d82d9316c
Parents: 9f793c6
Author: Alex Harui <aharui@apache.org>
Authored: Wed Apr 19 23:22:18 2017 -0700
Committer: Alex Harui <aharui@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;
     }
     


Mime
View raw message