Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing comment of first decorated method in class #48

Open
thakerng opened this issue Sep 20, 2016 · 1 comment
Open

missing comment of first decorated method in class #48

thakerng opened this issue Sep 20, 2016 · 1 comment

Comments

@thakerng
Copy link

I have compiled this

class Foo{

 /**
 * method 1
 */
 @decorator
 method1(){
  return "method1";
 }

 /**
 * method 2
 */
  method2(){
    return "method2";
  }

}

I got

var Foo = (_class = function () {
  function Foo() {
    _classCallCheck(this, Foo);
  }

  _createClass(Foo, [{
    key: "method1",
    value: function method1() {
      return "method1";
    }

    /**
    * method 2
    */

  }, {
    key: "method2",
    value: function method2() {
      return "method2";
    }
  }]);

  return Foo;
}(), (_applyDecoratedDescriptor(_class.prototype, "method1", [decorator], Object.getOwnPropertyDescriptor(_class.prototype, "method1"), _class.prototype)), _class);

missing /** method1 **/

@zoecarver
Copy link

As long as the decorator is not the first thing in the class there is no issue, but I will continue to look into this. It appears to be a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants