coffutt / atom-jsdoc

JSDoc hot key for atom editor.
MIT License
26 stars 12 forks source link

Fails for anonymous function declarations #8

Open prometheas opened 9 years ago

prometheas commented 9 years ago

The module is unable to do its job with this line:

Application.prototype.addCommand = function(command)

It should at least give me:

/**
 * description
 *  
 * @param  {type} command description 
 * @return {type}         description 
 */ 

And ideally:

/**
 * Application.addCommand - description
 *  
 * @param  {type} command description 
 * @return {type}         description 
 */ 
MikeMcElroy commented 9 years ago

Also, documenting functions declared within an object, like:

{
  myObjectFunction: function(a, b, c) {
    ...
  }
}
MikeMcElroy commented 9 years ago

See #9

MikeMcElroy commented 9 years ago

ping @craig-o

jwir3 commented 9 years ago

I think this is fixed now.

:+1:

prometheas commented 9 years ago

@jwir3: nope.

jwir3 commented 9 years ago

My bad.

coffutt commented 9 years ago

Hey sorry for the delay, but you're right. I'll try to get a fix in asap and I'll close this out when it's done.

prometheas commented 9 years ago

Exciting news!

uhho commented 9 years ago

:+1:

rainboxx commented 9 years ago

Looking forward to the fix :).