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 b3b22b123eb1f816143d02b4d856d8d3f46c73f3 Author: Josh Tynjala <[email protected]> AuthorDate: Tue Dec 3 16:04:22 2024 -0800 StreamingASTokenizer: accidentally had lastTokenNotRegularComment and lastTokenNotRegularCommentOrASDocComment backwards Followup to commit 960870beea14e01303383c9c6270fb9888ff90fe --- .../royale/compiler/internal/parsing/as/StreamingASTokenizer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/parsing/as/StreamingASTokenizer.java b/compiler/src/main/java/org/apache/royale/compiler/internal/parsing/as/StreamingASTokenizer.java index 65ad664b4..2fb5ead78 100644 --- a/compiler/src/main/java/org/apache/royale/compiler/internal/parsing/as/StreamingASTokenizer.java +++ b/compiler/src/main/java/org/apache/royale/compiler/internal/parsing/as/StreamingASTokenizer.java @@ -1345,10 +1345,10 @@ public class StreamingASTokenizer implements ASTokenTypes, IASTokenizer, Closeab { consumeSemi = false; lastToken = retVal; - if (retVal == null || (retVal.getType() != HIDDEN_TOKEN_SINGLE_LINE_COMMENT && retVal.getType() != HIDDEN_TOKEN_MULTI_LINE_COMMENT && retVal.getType() != TOKEN_ASDOC_COMMENT)) { + if (retVal == null || (retVal.getType() != HIDDEN_TOKEN_SINGLE_LINE_COMMENT && retVal.getType() != HIDDEN_TOKEN_MULTI_LINE_COMMENT)) { lastTokenNotRegularComment = retVal; } - if (retVal == null || (retVal.getType() != HIDDEN_TOKEN_SINGLE_LINE_COMMENT && retVal.getType() != HIDDEN_TOKEN_MULTI_LINE_COMMENT)) { + if (retVal == null || (retVal.getType() != HIDDEN_TOKEN_SINGLE_LINE_COMMENT && retVal.getType() != HIDDEN_TOKEN_MULTI_LINE_COMMENT && retVal.getType() != TOKEN_ASDOC_COMMENT)) { lastTokenNotRegularCommentOrASDocComment = retVal; } }
