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 da3d8dfb588a4a29097d32558629af854b6bdce3
Author: Josh Tynjala <[email protected]>
AuthorDate: Tue Dec 3 14:41:04 2024 -0800

    StreamingASTokenizer: ignore the previous non-asdoc comment token when 
determining if [ is the start of metadata
    
    switch() should have been using lastTokenNotRegularComment instead of 
lastToken
    
    Followup to 4d222acbc43b881ee035bcaffbf7f525c4002fb0^
---
 .../royale/compiler/internal/parsing/as/StreamingASTokenizer.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 1e0927400..65ad664b4 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
@@ -1405,7 +1405,7 @@ public class StreamingASTokenizer implements 
ASTokenTypes, IASTokenizer, Closeab
         }
         else
         {
-            switch (lastToken.getType())
+            switch (lastTokenNotRegularComment.getType())
             {
                 case TOKEN_ASDOC_COMMENT:
                 case TOKEN_SEMICOLON:

Reply via email to