You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2022/05/18 19:17:25 UTC
[royale-compiler] 02/02: formatter: more consistency with AS for error handling in MXML
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 b84f54979ad247996482fc61b096944ae5c478f0
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Wed May 18 12:14:59 2022 -0700
formatter: more consistency with AS for error handling in MXML
---
formatter/src/main/java/org/apache/royale/formatter/FORMATTER.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/formatter/src/main/java/org/apache/royale/formatter/FORMATTER.java b/formatter/src/main/java/org/apache/royale/formatter/FORMATTER.java
index ae88df2c7..75ba1ad9e 100644
--- a/formatter/src/main/java/org/apache/royale/formatter/FORMATTER.java
+++ b/formatter/src/main/java/org/apache/royale/formatter/FORMATTER.java
@@ -1775,6 +1775,10 @@ public class FORMATTER {
}
if (mxmlTokenizer.hasTokenizationProblems()) {
+ problems.addAll(mxmlTokenizer.getTokenizationProblems());
+ }
+
+ if (!ignoreProblems && hasErrors(problems)) {
return text;
}