flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [09/50] git commit: [flex-falcon] [refs/heads/master] - fix some bugs in isProxy
Date Wed, 06 Apr 2016 15:02:18 GMT
fix some bugs in isProxy


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

Branch: refs/heads/master
Commit: 18e6c68b71ea0cc90ba5d7a82661a18963d3f175
Parents: c71abdb
Author: Alex Harui <aharui@apache.org>
Authored: Fri Feb 19 08:11:51 2016 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Feb 19 08:11:51 2016 -0800

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


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/18e6c68b/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 70dbb58..4918c95 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
@@ -53,6 +53,7 @@ import org.apache.flex.compiler.internal.codegen.js.jx.SelfReferenceEmitter;
 import org.apache.flex.compiler.internal.codegen.js.jx.SuperCallEmitter;
 import org.apache.flex.compiler.internal.codegen.js.jx.VarDeclarationEmitter;
 import org.apache.flex.compiler.internal.projects.FlexJSProject;
+import org.apache.flex.compiler.internal.projects.FlexProject;
 import org.apache.flex.compiler.internal.tree.as.BinaryOperatorAsNode;
 import org.apache.flex.compiler.internal.tree.as.BlockNode;
 import org.apache.flex.compiler.internal.tree.as.DynamicAccessNode;
@@ -776,7 +777,7 @@ public class JSFlexJSEmitter extends JSGoogEmitter implements IJSFlexJSEmitter
      */
     public boolean isProxy(IExpressionNode obj)
     {
-		FlexJSProject project = (FlexJSProject)getWalker().getProject();
+		FlexProject project = (FlexProject)getWalker().getProject();
 		// See if it is Proxy
 		ITypeDefinition leftDef = obj.resolveType(project);
 		if (leftDef == null)
@@ -790,7 +791,7 @@ public class JSFlexJSEmitter extends JSGoogEmitter implements IJSFlexJSEmitter
 				while (leftNode.getNodeID() == ASTNodeID.MemberAccessExpressionID)
 				{
 					// walk up chain looking for a proxy
-					leftNode = ((MemberAccessExpressionNode)obj).getLeftOperandNode();
+					leftNode = ((MemberAccessExpressionNode)leftNode).getLeftOperandNode();
 					leftDef = leftNode.resolveType(project);
 					if (leftDef != null && leftDef.isInstanceOf(project.getProxyBaseClass(), project))
 						return true;


Mime
View raw message