-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comment moves inside of object #5417
Comments
Same note as #5415 (comment). Comments are stowaways on the nearest “real” token, and because of the rewriter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to add a JSDoc comment to an object that is an argument to a function the comment gets moved to the first key of the object. I would expect the comment to be on the first key if there is no explicit
{
but it seems to attach to the first key even when the explicit{
is present after the comment.Actual:
Expected:
The text was updated successfully, but these errors were encountered: