You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cd...@apache.org on 2016/04/11 16:00:01 UTC

[34/50] git commit: [flex-falcon] [refs/heads/feature/maven-migration] - IdentifierEmitter: added missing source map for certain types of identifier

IdentifierEmitter: added missing source map for certain types of identifier


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

Branch: refs/heads/feature/maven-migration
Commit: 40604f56b6c60ea986c2572bfec076244940553b
Parents: 3e5e4fe
Author: Josh Tynjala <jo...@apache.org>
Authored: Wed Apr 6 17:25:58 2016 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Wed Apr 6 17:25:58 2016 -0700

----------------------------------------------------------------------
 .../compiler/internal/codegen/js/jx/IdentifierEmitter.java   | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/40604f56/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
index 69217c1..b8a9703 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/IdentifierEmitter.java
@@ -217,7 +217,7 @@ public class IdentifierEmitter extends JSSubEmitter implements
                     //member access expression, it shouldn't be fully qualified
                     needsFormattedName = parentMemberAccessNode.getLeftOperandNode() == node;
                 }
-                getEmitter().startMapping(node);
+                startMapping(node);
                 if (parentNodeId == ASTNodeID.MemberAccessExpressionID)
                 {
                     if (needsFormattedName)
@@ -235,10 +235,14 @@ public class IdentifierEmitter extends JSSubEmitter implements
                     write(getEmitter().formatQualifiedName(qname));
                 else
                     write(qname);
-                getEmitter().endMapping(node);
+                endMapping(node);
             }
             else
+            {
+                startMapping(node);
                 write(node.getName());
+                endMapping(node);
+            }
         }
     }