Wikunia / brackets-FuncDocr

FuncDocr generates JS/PHPDoc annotations for your functions
101 stars 14 forks source link

Use callback for the types #28

Closed ficristo closed 9 years ago

ficristo commented 9 years ago

If I have defined a @callback comment I would like to have it too in the list of the types.

Wikunia commented 9 years ago

@ficristo do you want to have a callback as a parameter type? So sth like

/**
* abcdef
* @param {callback} callback callback function
*/
ficristo commented 9 years ago

Let's say I have a doc comment in the file for my callback type as follow:

/**
 * @callback MyObj~myCb - blah blah ...
 * @param ...
 */

It would be nice that when I go to change the types

 * @param {[[Type]]}

the plugin will give me the option MyObj~myCb too. So in the list I'll see: Number, String, ... Function, MyObj~myCb

Wikunia commented 9 years ago

ah okay you would like to have the callback function as a type. Sounds interesting :) Never thought about it, but I think it can improve the documentation so I will have a look!

Wikunia commented 9 years ago

@ficristo it would be nice when you can download the newest version (v0.8.4 from Url) and test it! Have a nice weekend!