sonypiay / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

Problem with multiple constructors => only one contructor in the output html pages #227

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Define several constructors like this:
/**
 * Constructor without params
 * @class Represents a cat
 * @extends Animal
 * @constructor
 **/
/**
 * Contructor with a param
 * @name Cat
 * @constructor
 * @param {String} name The name of the cat
 **/
function Cat(){ ...

2. then I run jsdoc-toolkit with "jsdoc" template (or with "outlune"
template, other templates doesn't work)

What is the expected output? What do you see instead?

I expect to see in the output files the details for all contructors.
Instead I get only one constructor in the Class Summary and in the Class
Detail.
(The same occurs with "outlune" template, but the word "Class" replaced
with "Constructor".)

What version of the product are you using? On what operating system?

JsDoc Toolkit version 2.3.0. on Windows Vista

Please provide any additional information below.

Original issue reported on code.google.com by panno.l...@gmail.com on 9 Jul 2009 at 5:48

GoogleCodeExporter commented 8 years ago
I forgot to say, there is a wrapper for the constructor, something like this:

function constructor(){
    if(arguments.length==0)this._contructor();
    else if(arguments.length==1 &&
typeof(arguments[0])=="string")this._constructor$string(arguments[0]);
}

Original comment by panno.l...@gmail.com on 10 Jul 2009 at 9:13

GoogleCodeExporter commented 8 years ago
JsDoc Toolkit does not support multiple symbols with the same name. You can 
document the parameters as 
optional if that's what you mean, but you can't document two different 
constructors with the same name.

Original comment by micmath on 11 Jul 2009 at 11:01