Re: [Jsdoc-user] Documenting JavaScript Innter Types
Status: Inactive
Brought to you by:
mmathews
From: Michael M. <mi...@gm...> - 2007-03-10 14:41:49
|
Hi Aaron, I can tell you that this is possible using JSDoc-2. I've posted a working example of how at this URL: http://www.jsdoc.info/export/examples/html/picky.html (pick "aaron.js" from the drop-menu) Note that the above website is not "officially" available yet, but will soon contain a gallery of working examples and downloadable templates. Just thought you might want to see a little preview of how your particular example would work. The source code is: /** myClass - This is my class. */ var myClass = { /** myClass.setter - Set this. */ setter: function(){}, /** myClass.getter - Get this.*/ getter: function(){} } Have a look at the JSDoc-2 wiki for more information on JSDoc-2 syntax or reply to the mailing list (in the cc) with specific questions. http://code.google.com/p/jsdoc-2/ Also, if any other code samples are posted to the list, I'll try to add those to the gallery too. Regards, Michael On 9 Mar 2007, at 18:16, Aaron Swain wrote: > Hi, just wondering if JSDoc supports inner types at all? For example: > > > > var myClass = { > > setter: function(){}, > > getter: function(){} > > } > > > > Or if anyone knows/has something that will support this? > > > > Thanks, > > > > Aaron > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > _______________ > Jsdoc-user mailing list > Jsd...@li... > https://lists.sourceforge.net/lists/listinfo/jsdoc-user |