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

commit bab243d40cac0b0819435fe94e7aec76e77257cf
Author: Josh Tynjala <[email protected]>
AuthorDate: Wed Mar 6 08:48:14 2024 -0800

    MXMLModelPropertyContainerNodeBase: add missing setLocation() for tags
---
 .../internal/tree/mxml/MXMLModelPropertyContainerNodeBase.java        | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLModelPropertyContainerNodeBase.java
 
b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLModelPropertyContainerNodeBase.java
index 7b4bbe8eb..bb4937ce4 100644
--- 
a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLModelPropertyContainerNodeBase.java
+++ 
b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLModelPropertyContainerNodeBase.java
@@ -152,6 +152,9 @@ abstract class MXMLModelPropertyContainerNodeBase extends 
MXMLNodeBase implement
     protected void initializeFromTag(MXMLTreeBuilder builder, IMXMLTagData tag)
     {
         name = tag.getShortName(); // see note in initializeFromAttribute 
about namespaces.
+
+        setLocation(tag);
+        
         super.initializeFromTag(builder, tag);
     }
 
@@ -182,6 +185,7 @@ abstract class MXMLModelPropertyContainerNodeBase extends 
MXMLNodeBase implement
 
         MXMLModelPropertyNode propertyNode = new MXMLModelPropertyNode(this);
         propertyNode.initializeFromTag(builder, childTag);
+        propertyNode.setLocation(childTag);
         info.addChildNode(propertyNode);
     }
 

Reply via email to