You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pi...@apache.org on 2019/09/16 08:07:11 UTC

[royale-compiler] 04/06: FullNameNode: fixed issue where end line and end column were never set based on the right node

This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a commit to branch release/0.9.6
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit 111f0c8a491cc46a41db2901be922738d8151127
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Fri Sep 13 11:29:14 2019 -0700

    FullNameNode: fixed issue where end line and end column were never set based on the right node
    
    (cherry picked from commit d2bb7b4ba2c7d86f571c0eb2d9d07d79af00dc83)
---
 .../org/apache/royale/compiler/internal/tree/as/FullNameNode.java | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/FullNameNode.java b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/FullNameNode.java
index c23fec7..92c9709 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/FullNameNode.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/FullNameNode.java
@@ -71,7 +71,11 @@ public class FullNameNode extends MemberAccessExpressionNode implements IIdentif
         super(left, operator, right);
         
         if (right != null)
+        {
             setEnd(right.getAbsoluteEnd());
+            setEndLine(right.getEndLine());
+            setEndColumn(right.getEndColumn());
+        }
     }
 
     protected FullNameNode(MemberAccessExpressionNode node)
@@ -145,7 +149,11 @@ public class FullNameNode extends MemberAccessExpressionNode implements IIdentif
         super.setRightOperandNode(right);
         
         if (right != null)
+        {
             setEnd(right.getAbsoluteEnd());
+            setEndLine(right.getEndLine());
+            setEndColumn(right.getEndColumn());
+        }
     }
     
     //