Files
test-repo/tests/comments/return-statement.js
T
Davy Duperron b661fecd9c Fix comments in return statement argument (#657)
* 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.
2017-02-13 18:35:42 -08:00

18 lines
161 B
JavaScript

function a() {
return (
// Comment
<div />
);
}
function b() {
return (
// Comment
!!x
);
}
function c() {
return 1337; // Comment
}