Wikunia / brackets-FuncDocr

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

Support exported functions #70

Closed stowball closed 8 years ago

stowball commented 8 years ago

FuncDocr doesn't work on exported functions such as the code below, unless you first remove the export default.

export default function getJSON(url, onSuccess, onError) {
}
Wikunia commented 8 years ago

Hi @stowball can you give me some more information about this structure? Never had function declarations like this one, so is it only working with export default or is possible to just use export and is it possible to use private export default function or some stuff like this? I'm sorry at the moment this extension uses regexes and not a parser (see more details in the readme) :/

stowball commented 8 years ago

It's the syntax for using ES6/Require modules http://www.2ality.com/2014/09/es6-modules-final.html

Wikunia commented 8 years ago

Would be great if you can test this via url. Then I will register it afterwards! Thanks for the issue!

stowball commented 8 years ago

Love your work