tj/dox

support static class methods

A opened this issue · 1 comments

A commented

I got problem with es6 static class methods. Here is my code:

/**
  * @class MyClass
  */
class MyClass {
  /**
   * desc
   *
   * @param {Plugin} plugin
   * @return {Object} MyClass
   */
  static use(plugin) {
    plugins.push(plugin);
    return MyClass;
  }
}

And I get strange results with doxme like false(plugin) and also dox's output doesn't have any mentions for use method. Sorry, but I don't know enough to tell you what json I'm expecting and I hope that you know :)

A commented

Here is valid class methods by the spec:

class MyClass {
  hello() {}
  hello() {}
  static hello() {}
  *hello () {}
  [computed] () {}
  *[computed] () {}
  static *[computed+name] () {}
  static *hello () {}
  static * hello () {}
}

I'm going to make pull request to fix it