Repository: flex-falcon
Updated Branches:
  refs/heads/develop 7dc84ed2c -> d1c44a4dd


fix when we emit set functions


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

Branch: refs/heads/develop
Commit: c941caba746cbefd1d577117c845aba571f7c44e
Parents: 7dc84ed
Author: Alex Harui <[email protected]>
Authored: Sun Dec 21 07:26:51 2014 -0800
Committer: Alex Harui <[email protected]>
Committed: Sun Dec 21 07:26:51 2014 -0800

----------------------------------------------------------------------
 .../compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/c941caba/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
----------------------------------------------------------------------
diff --git 
a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
 
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
index 1799d76..e7f69c8 100644
--- 
a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
+++ 
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
@@ -1075,10 +1075,14 @@ public class JSFlexJSEmitter extends JSGoogEmitter 
implements IJSFlexJSEmitter
             }
 
             String op = node.getOperator().getOperatorText();
-            boolean isAssignment = !(op.contains("==") || !op.contains("="));
+            boolean isAssignment = op.contains("=") && !op.contains("==") && 
+                                                                               
        !(op.startsWith("<") || 
+                                                                               
                        op.startsWith(">") || 
+                                                                               
                        op.startsWith("!"));
 
             if (def instanceof AccessorDefinition && isAssignment)
             {
+               // this will make the set_foo call
                 getWalker().walk(leftSide);
             }
             else if (isSuper) 

Reply via email to