save the node for the binding so we can match it on the JX compiler

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

Branch: refs/heads/develop
Commit: 3fb17352f165d71b2262191ec401c082d5b5ffdc
Parents: 7580fd5
Author: Alex Harui <[email protected]>
Authored: Sun Dec 21 07:30:43 2014 -0800
Committer: Alex Harui <[email protected]>
Committed: Sun Dec 21 07:30:43 2014 -0800

----------------------------------------------------------------------
 .../internal/codegen/databinding/BindingInfo.java         | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3fb17352/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/BindingInfo.java
----------------------------------------------------------------------
diff --git 
a/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/BindingInfo.java
 
b/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/BindingInfo.java
index 7267f13..1b0b37c 100644
--- 
a/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/BindingInfo.java
+++ 
b/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/BindingInfo.java
@@ -46,6 +46,7 @@ import org.apache.flex.compiler.tree.mxml.IMXMLBindingNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLClassDefinitionNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLClassReferenceNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLConcatenatedDataBindingNode;
+import org.apache.flex.compiler.tree.mxml.IMXMLNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLSingleDataBindingNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLDataBindingNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLExpressionNode;
@@ -69,7 +70,8 @@ public class BindingInfo implements Comparable<BindingInfo>
     public BindingInfo(IMXMLDataBindingNode dbnode, int index, 
MXMLClassDirectiveProcessor host)
     {
         this.index = index;
- 
+        node = dbnode;
+        
         // look at the node we are passed, and expand it out to all
         // of its expression children
         expressionNodesForGetter = new LinkedList<IExpressionNode>();
@@ -127,7 +129,8 @@ public class BindingInfo implements Comparable<BindingInfo>
             boolean reverseSourceAndDest)
     {
         this.index = index;
-
+        node = bindingNode;
+        
         IExpressionNode destinationNode = null;
         expressionNodesForGetter = new LinkedList<IExpressionNode>();
         // look at the node we are passed, and expand it out to all
@@ -176,7 +179,8 @@ public class BindingInfo implements Comparable<BindingInfo>
     private  boolean isSimplePublicProperty;
     private  String sourceString;
     private int twoWayCounterpart = -1;     // index of two way counterpart, 
or -1
-
+    public IMXMLNode node;
+    
     // The expression node that represents the destination
     // this is used for more complex destinations, like inside an XML object
     // where the destination could be something like:

Reply via email to