flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshtynj...@apache.org
Subject [2/2] git commit: [flex-falcon] [refs/heads/develop] - ObjectLiteralValuePairEmitter: does not create mapping for key in object literal value pair because another emitter will handle that (such as IdentifierEmitter)
Date Thu, 07 Apr 2016 00:26:50 GMT
ObjectLiteralValuePairEmitter: does not create mapping for key in object literal value pair
because another emitter will handle that (such as IdentifierEmitter)


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

Branch: refs/heads/develop
Commit: 88a9bc28c44b7af39290b01350deee76af7b4ee3
Parents: 40604f5
Author: Josh Tynjala <joshtynjala@apache.org>
Authored: Wed Apr 6 17:26:42 2016 -0700
Committer: Josh Tynjala <joshtynjala@apache.org>
Committed: Wed Apr 6 17:26:42 2016 -0700

----------------------------------------------------------------------
 .../codegen/js/jx/ObjectLiteralValuePairEmitter.java     | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/88a9bc28/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/ObjectLiteralValuePairEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/ObjectLiteralValuePairEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/ObjectLiteralValuePairEmitter.java
index 0c36871..d93d701 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/ObjectLiteralValuePairEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/ObjectLiteralValuePairEmitter.java
@@ -25,7 +25,6 @@ import org.apache.flex.compiler.common.ISourceLocation;
 import org.apache.flex.compiler.internal.codegen.as.ASEmitterTokens;
 import org.apache.flex.compiler.internal.codegen.js.JSSubEmitter;
 import org.apache.flex.compiler.tree.as.IExpressionNode;
-import org.apache.flex.compiler.tree.as.ILiteralNode;
 import org.apache.flex.compiler.tree.as.IObjectLiteralValuePairNode;
 
 public class ObjectLiteralValuePairEmitter extends JSSubEmitter implements
@@ -42,15 +41,7 @@ public class ObjectLiteralValuePairEmitter extends JSSubEmitter implements
         ISourceLocation sourceLocationNode = (ISourceLocation) node;
 
         IExpressionNode nameNode = node.getNameNode();
-        if (!(nameNode instanceof ILiteralNode))
-        {
-            startMapping(nameNode);
-        }
-        getWalker().walk(node.getNameNode());
-        if (!(nameNode instanceof ILiteralNode))
-        {
-            endMapping(nameNode);
-        }
+        getWalker().walk(nameNode);
 
         startMapping(sourceLocationNode, nameNode);
         write(ASEmitterTokens.COLON);


Mime
View raw message