jsdoc 3.2.2 does what you want by default. In this example, the method B.foo
will automatically be documented because B
extends A
and does not override foo
:
/**
* @class
*/
function A() {
}
/**
* Foo the flerbl.
* @param {Object} flerbl The flerbl.
*/
A.prototype.foo = function (flerbl) {
};
/**
* @class
* @extends A
*/
function B() {
}
B.prototype = new A();
Otherwise, you must use #
in your @memberof
tag to mark the object as an belonging to an instance of the class:
/**
* description
* @function Afunc
* @memberof A#
*/