-
Notifications
You must be signed in to change notification settings - Fork 333
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(s) in parenthesis statement being removed #426
Comments
the more problematic scenario is when having an arrow function returning an object expression () => (
// comment
{
a: 1, b: 2
}) output: () => // comment
{
a: 1,
b: 2
}); suggested output: () => ( // comment
{
a: 1,
b: 2
)}); |
Closed
@lucivpav we also need to support this syntax: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem with
escodegen.attachComments
(and maybe also withesprima.parse
). See https://github.com/estools/escodegen/blob/master/test/comment.js or #427 PR for reproduction.Input:
Output:
Suggested output:
The text was updated successfully, but these errors were encountered: