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/14 09:46:42 UTC

[13/18] git commit: [flex-falcon] [refs/heads/feature/maven-migration-test] - IndentifierEmitter: source map for 'this.' in front of identifier when it is omitted in AS

IndentifierEmitter: source map for 'this.' in front of identifier when it is omitted in AS


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

Branch: refs/heads/feature/maven-migration-test
Commit: e395dcdfc1ceb3a41099344d7a78646d95178da6
Parents: b0fcbce
Author: Josh Tynjala <jo...@apache.org>
Authored: Wed Apr 13 16:00:22 2016 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Wed Apr 13 16:00:22 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/e395dcdf/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 0e849ef..24df201 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
@@ -169,12 +169,14 @@ public class IdentifierEmitter extends JSSubEmitter implements
                         .getParent().getAncestorOfType(
                                 IFunctionObjectNode.class);
 
+                startMapping(node);
                 if (functionObjectNode != null)
                     write(JSGoogEmitterTokens.SELF);
                 else
                     write(ASEmitterTokens.THIS);
 
                 write(ASEmitterTokens.MEMBER_ACCESS);
+                endMapping(node);
             }
 
             if (generateClosure)