escodegen
escodegen copied to clipboard
Add support for inline comments
In regard to issue #206 ("Attach comment to an empty object"):
I have an initial modification of attachComments() and addComments() which supports comments in empty object/block.
I've called them inline comments, and they are attached to the node which represents the empty object/block (i.e. ObjectExpression/BlockStatement).
You'll need to add tests before this can be accepted.
Sure, I'll add tests, and will fix my code so the existing tests which are failing will pass.
Whats the status on this. I have a node module that exports a set of constants and all my inline comments are lost because they exist at the body level (no node to attach to). I could really use this functionality.
@Cleanshooter Looks like it still needs tests.
@Cleanshooter Add tests, so this can get merged
@tonyobanon You can add tests, too. It's open source after all.
@tonyobanon why would I? I last posted a comment on this project 3 years ago. I don't even know what this thing is anymore. Probably be a good idea to not call out people that haven't been involved with a project for years to do stuff for you in the future... 🙄