-
Notifications
You must be signed in to change notification settings - Fork 350
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
ArrowFunctionExpression returning ObjectPattern prints without parens when a return type is removed #1067
Comments
I made the initial PR to add support for First: Second: I implemented the logic to check Lines 107 to 126 in cb7ff9a
|
Third: the patcher seems to rely only on Lines 234 to 236 in cb7ff9a
|
So I guess I understand how it's broken now. How should it work? I clearly made a faulty assumption when I made the initial PR, that While it is true that |
I've created a minimal repro for this behavior here: https://github.com/conartist6/recast-arrow-object-pattern-repro
The input is:
and the output is invalid, as it is missing parens:
The text was updated successfully, but these errors were encountered: