Re: [Jsdoc-user] generated HTML missing method details unless class used
Status: Inactive
Brought to you by:
mmathews
From: Gabriel R. <gab...@gm...> - 2006-01-06 17:19:14
|
On Fri, Jan 06, 2006 at 11:32:25AM -0500, bru...@wa... wrote: > here is a copy of a posting to the bug list...[Im not sure how often that > is monitored > since all the other bugs in the list haven't been assigned and some are > over a > year old]... Actually, the bugs list is indeed monitored quite regularly. The bugs that are still up there are generally (currently) not really solvable. They don't get assigned because there's only me to assign them to myself :) > When the attached file is processed with 1.9.8 it > produces HTML missing the documention for each of the > methods of the single class in this file (Map). > > However, if the very last line [which simply does a > "new Map()" ] is uncommented, then the proper HTML is > produced. > > The code should not have to actually use a class in > order for that class to be documented! > > I have verified that there can be arbitrary amounts of > code added to the file, and as long as Map is > instantiated somewhere in that code, Map methods are > properly documented in the HTML but not otherwise. JSDoc doesn't recognize Map as being a constructor without the call to it. This can also be accomplished by adding a @constructor tag to Map's documentation block. The next release of JSDoc won't require a @constructor tag if the @class tag is used for the same function (which is the case in your file). Gabriel |