Open StreetStrider opened 6 years ago
Also // @flow
gets transformed to just //
. Be useful to just remove this completely.
Hey @StreetStrider @dashed, apologies for the long radio silence. I wonder: What's the impact of this issue? Does anything actually not work because we leave these empty comments in the output? I mean, I can see a case for this in --pretty
mode, but still, it seems fairly benign to me.
@motiz88 nothing broken, it's just a matter of style. If the only reason I create comment is to put flow pragma in it, I would like this comment to be eleminated completely by something like flow pragma removing utility.
Is it possible to supply an option to remove pragmas with corresponding comments completely, if comments have no other content but pragma only? Like:
/* @flow foo */
→/* foo */
, but/* @flow */
→ (empty string).For now I got emptish comments in my generated code like this:
/* */
.