flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [10/22] git commit: [flex-falcon] [refs/heads/develop] - Avoid an error when encountering an Embed node
Date Fri, 24 Oct 2014 11:30:02 GMT
Avoid an error when encountering an Embed node

Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>


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

Branch: refs/heads/develop
Commit: 601605b9a9c9580a5f276854e5d96d21ab2c1e20
Parents: fff03fa
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Tue Oct 21 13:27:37 2014 +0200
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Thu Oct 23 19:42:52 2014 +0200

----------------------------------------------------------------------
 .../flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/601605b9/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
index 94e971a..1eb08a8 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
@@ -55,6 +55,7 @@ import org.apache.flex.compiler.tree.as.IBinaryOperatorNode;
 import org.apache.flex.compiler.tree.as.IClassNode;
 import org.apache.flex.compiler.tree.as.IContainerNode;
 import org.apache.flex.compiler.tree.as.IDefinitionNode;
+import org.apache.flex.compiler.tree.as.IEmbedNode;
 import org.apache.flex.compiler.tree.as.IExpressionNode;
 import org.apache.flex.compiler.tree.as.IForLoopNode;
 import org.apache.flex.compiler.tree.as.IFunctionCallNode;
@@ -385,7 +386,8 @@ public class JSGoogEmitter extends JSEmitter implements IJSGoogEmitter
         }
 
         emitDeclarationName(node);
-        emitAssignedValue(avnode);
+        if (!(avnode instanceof IEmbedNode))
+        	emitAssignedValue(avnode);
 
         if (!(node instanceof ChainedVariableNode))
         {


Mime
View raw message