Repository: flex-falcon Updated Branches: refs/heads/dual a34fbe28b -> a940299c5
special case XML/XMLLIst Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/a940299c Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/a940299c Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/a940299c Branch: refs/heads/dual Commit: a940299c52cda86fb8b3196cb4ac663ed7c9cc0f Parents: a34fbe2 Author: Alex Harui <[email protected]> Authored: Fri Mar 3 14:22:23 2017 -0800 Committer: Alex Harui <[email protected]> Committed: Fri Mar 3 14:22:30 2017 -0800 ---------------------------------------------------------------------- .../flex/compiler/internal/semantics/SemanticUtils.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a940299c/compiler/src/main/java/org/apache/flex/compiler/internal/semantics/SemanticUtils.java ---------------------------------------------------------------------- diff --git a/compiler/src/main/java/org/apache/flex/compiler/internal/semantics/SemanticUtils.java b/compiler/src/main/java/org/apache/flex/compiler/internal/semantics/SemanticUtils.java index a67a880..aee5c33 100644 --- a/compiler/src/main/java/org/apache/flex/compiler/internal/semantics/SemanticUtils.java +++ b/compiler/src/main/java/org/apache/flex/compiler/internal/semantics/SemanticUtils.java @@ -832,7 +832,12 @@ public class SemanticUtils public static boolean hasDynamicBase(Binding binding, ICompilerProject project) { ExpressionNodeBase base = getBaseNode(binding); - return base != null && base.isDynamicExpression(project); + if (base != null && base.isDynamicExpression(project)) + return true; + // the JS version of XML is not currently dynamic so special case it here. + if (base != null && base.getNodeID() == ASTNodeID.IdentifierID && IdentifierNode.isXMLish(base.resolveType(project), project)) + return true; + return false; } /**
