![]() This one sucks. The range of the `test` of `if (a /* comment */) {}` is only `a` and doesn't include the comment nor parenthesis. This means that we have no way to know if the comment is placed before or after the `)` unless you look at the actual source and strip all the whitespace/comments characters to see if it's a `)`... This happened on the babel source code twice and many times in the fb codebase. I think we need to fix it unfortunately :( Fixes #867 |
||
---|---|---|
.. | ||
jsfmt.spec.js.snap |