You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, we don't track } and { in the AST, specifically - can you elaborate on what structure those tokens are actually a part of (eg, body of an if, or body of a function)? In some of your screenshots it's not clear.
Bug Report
Comments before "}" (close bracket) are removed after transforming the AST for the file. Structure: Block.

Comments after "{" (open bracket) are removed if they are in the same line as the bracket after transforming the AST for the file. Structure: Block

Comments after a "," are removed after transforming the AST for the file.


In this PR there are some fixes but the ones mentioned above still happen:
#17689
🙁 Actual behavior
Comments are removed.
🙂 Expected behavior
Comments should still be there after transforming the AST.
The text was updated successfully, but these errors were encountered: