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

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


The following commit(s) were added to refs/heads/develop by this push:
     new 7fd59ea41 FunctionCallNode: fix start and end position when created 
with a new keyword
7fd59ea41 is described below

commit 7fd59ea412090d6a53e0b935ed6f6d68e69f7df2
Author: Josh Tynjala <joshtynj...@apache.org>
AuthorDate: Wed Jan 25 14:29:15 2023 -0800

    FunctionCallNode: fix start and end position when created with a new keyword
---
 .../org/apache/royale/compiler/internal/tree/as/FunctionCallNode.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/FunctionCallNode.java
 
b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/FunctionCallNode.java
index b0628fbc7..aa5cabc28 100644
--- 
a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/FunctionCallNode.java
+++ 
b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/FunctionCallNode.java
@@ -51,6 +51,8 @@ public class FunctionCallNode extends ExpressionNodeBase 
implements IFunctionCal
         newKeywordNode = new KeywordNode(keywordNew);
         this.nameNode = nameNode;
         argumentsNode = new ContainerNode(2);
+        startBefore(keywordNew);
+        endAfter(nameNode);
     }
 
     /**

Reply via email to