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 749763d17 MXMLTagAttributeData: fix location of MXML attribute value
start column
749763d17 is described below
commit 749763d1757b7afe759967092150b59bb520fc8c
Author: Josh Tynjala <[email protected]>
AuthorDate: Thu Aug 11 09:28:06 2022 -0700
MXMLTagAttributeData: fix location of MXML attribute value start column
It was incorrectly getting set to the start column of the = token instead
of the end column
---
.../org/apache/royale/compiler/internal/mxml/MXMLTagAttributeData.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/compiler/src/main/java/org/apache/royale/compiler/internal/mxml/MXMLTagAttributeData.java
b/compiler/src/main/java/org/apache/royale/compiler/internal/mxml/MXMLTagAttributeData.java
index e88b9e063..8979bd8af 100644
---
a/compiler/src/main/java/org/apache/royale/compiler/internal/mxml/MXMLTagAttributeData.java
+++
b/compiler/src/main/java/org/apache/royale/compiler/internal/mxml/MXMLTagAttributeData.java
@@ -87,7 +87,7 @@ public class MXMLTagAttributeData extends SourceLocation
implements IMXMLTagAttr
valueStart = token.getEnd(); // set the value's start to right
after the equals until we have a value
valueLine = token.getLine();
- valueColumn = token.getColumn();
+ valueColumn = token.getColumn() + token.getEnd() -
token.getStart();
}
Boolean firstToken = true;