flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject [10/50] git commit: [flex-falcon] [refs/heads/feature/maven-migration] - source map for instanceof
Date Mon, 11 Apr 2016 13:59:37 GMT
source map for instanceof


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

Branch: refs/heads/feature/maven-migration
Commit: 2dd2b08d5c001e7a264c1dc7e601010eb2903b18
Parents: de36791
Author: Josh Tynjala <joshtynjala@apache.org>
Authored: Wed Mar 30 13:33:22 2016 -0700
Committer: Josh Tynjala <joshtynjala@apache.org>
Committed: Wed Mar 30 13:33:22 2016 -0700

----------------------------------------------------------------------
 .../compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/2dd2b08d/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java
index 12f3dbd..704c06b 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java
@@ -71,8 +71,10 @@ public class BinaryOperatorEmitter extends JSSubEmitter implements
         {
             getWalker().walk(node.getLeftOperandNode());
 
+            getEmitter().startMapping(node, node.getLeftOperandNode().getAbsoluteEnd() -
node.getAbsoluteStart());
             write(ASEmitterTokens.SPACE);
             writeToken(ASEmitterTokens.INSTANCEOF);
+            getEmitter().endMapping(node);
 
             IDefinition dnode = (node.getRightOperandNode())
                     .resolve(getProject());


Mime
View raw message