tgandrews / atom-easy-jsdoc

JSDoc hot key for atom editor.
Other
41 stars 11 forks source link

Recognize ES6 arrow syntax #44

Closed ianwalter closed 7 years ago

ianwalter commented 7 years ago

For example, when adding jsdoc for the following:

const hasIdentifier = el => el.hasAttribute('id') || el.hasAttribute('name')

Only a comment block is inserted:

/**
 * 
 */ 

The plugin doesn't add the param or return lines like it does for functions written in the traditional syntax.

tgandrews commented 7 years ago

I think this was resolved with release 4.9.0 and beta enabled please can you confirm?

tgandrews commented 7 years ago

reproduction failure

ianwalter commented 7 years ago

I didn't have beta enabled previously. After reinstalling and enabling beta this seems to be working correctly. I saw some strange behavior and got an error during the process but I can't reproduce them anymore. Thank you!