Wikunia / brackets-FuncDocr

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

Support for ES6 class methods #64

Closed derwaldgeist closed 8 years ago

derwaldgeist commented 8 years ago

At the moment, FuncDocr does not recognize ES6 constructors or class methods, which are not using the function keyword, like this:

class myClass {

   static classMethod(arg) {
   ...
   }

   constructor(arg) {
   ...
   }

   method(arg) {
   ...
   }

}

It would be nice if this would be implemented as ES6 is becoming more and more popular, as many JS frameworks switch to it (either using Babel/Traceur or using it directly).

The full ES6 class syntax is explained here: http://www.2ality.com/2015/02/es6-classes-final.html

Wikunia commented 8 years ago

the constructor function should work but I forgot the static thanks for the issue!

Wikunia commented 8 years ago

Would be great if you can test the newest version using "Install from URL" Danke!

derwaldgeist commented 8 years ago

Thanks for this update. Unfortunately, I am not using Brackets anymore - I've switched to Atom in the meantime.