Closed GoogleCodeExporter closed 8 years ago
This behavior was a design decision, with the intention of causing the least
pain (it can be a painful issue).
There are two ways to go when confronted with an ignored (or private) class:
either A) we always ignore all the
members (what you are proposing), or B) we never ignore any of the members (as
it is implemented).
The reason A lost and B won that contest was that in the case of B you always
have the option of selectively
adding @ignore tags to any or all members to achieve precisely what you want.
In the case of A you might
want to "not ignore" some members, and then what do you do? B wins by being
more flexible.
However if you really do want to just ignore everything doc in a section of
code you do have the option of
using a metatag, like so:
/**#@+
@private
*/
/**
* @constructor
*/
function Foo() {
/**
* Runs bar!
*/
this.bar = function() {
};
}
/**#@-*/
/**
* @constructor
*/
function Baz() {
}
That makes Foo and Foo#bar private, whilst Baz is not private. This is
explained further here:
http://code.google.com/p/jsdoc-toolkit/wiki/MetaTags
Original comment by micmath
on 12 Sep 2009 at 5:59
Original issue reported on code.google.com by
mcbain....@gmail.com
on 3 Sep 2009 at 8:16