Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix formatting of comment in paren of call expression in arrow expression #3334
Fixes #2853 (comment).
Fix an edge case where a comment inside the parentheses of a call expression of an arrow function expression with no bracket would have the arrow function expression, instead of the call expression, as the enclosing node. Therefore, when checking for whether there is an argument, we might get the wrong result.
would get formatted to
before this fix. But with this fix, the comment won't get moved.
Let me know if there is any improvement I could make.