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/develop] - fix when we emit set functions
Date Tue, 23 Dec 2014 07:40:47 GMT
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 <aharui@apache.org>
Authored: Sun Dec 21 07:26:51 2014 -0800
Committer: Alex Harui <aharui@apache.org>
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) 


Mime
View raw message