* Extend ReturnStatement case to better handle comments in argument 🎉. * Update test. * Add missing space between return and left parenthese. * Fix current tests and add new tests. * Do not break one-liner returns. * Revert specific test. * Patch from #683.
18 lines
161 B
JavaScript
18 lines
161 B
JavaScript
function a() {
|
|
return (
|
|
// Comment
|
|
<div />
|
|
);
|
|
}
|
|
|
|
function b() {
|
|
return (
|
|
// Comment
|
|
!!x
|
|
);
|
|
}
|
|
|
|
function c() {
|
|
return 1337; // Comment
|
|
}
|