javascript - How to comment a JS module pattern class using JSDoc3? -


that's way private methods , propertys not visable after generate documentation.

have done wrong?

incidentally, else works fine. use first time documentation generator, , i'm impressed.

/**  * constructor description  * @constructor  * @class  * @classdesc class foo.  */ container.foo = function() { this.init(); }; container.foo.prototype = (function() {    /**    * @private    * @name container.foo~foopropertyprivat    * @property {boolean} foopropertyprivat description    */      var foopropertyprivat = true;    /**    * description    * @private    * @name container.foo~dosomethingprivat    * @memberof container.foo    * @method dosomethingprivat    */      function dosomethingprivat() {       //...   }    return {     /**      * @public      * @name container.foo#foopropertypublic      * @property {boolean} foopropertypublic description      */      foopropertypublic: true,      /**      * description      * @public      * @constructs      * @name container.foo#init      * @memberof container.foo      * @method init      */      init: function() {        //...      }   }; })(); 

raphael, i'm glad hear jsdoc 3 working far!

by default, jsdoc omits symbol tagged @private. can override setting using --private command-line option.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -