Open GoogleCodeExporter opened 8 years ago
The parser isn't crazy. The trouble is coming from the file named CR_UI.js.
Here's the explanation: Any doc comment that contains a @fileoverview tag is
considered to be
documentation for a "file object", which has the @name implicitly set to the
file pathname for that file. So, in
the CR_UI.js file, there is file object named "/path/to/file/CR_UI.js". That
much is fine and as expected. The
problem comes when you then add a @constructor tag to the same comment. This is
not allowed. Really JsDoc
Toolkit should throw an error telling you something like "No, no. You can
document a file or you can
document a constructor, but you can't do both at once! Use separate comments
please!" But instead it carries
on, according to your @constructor tag, but still using the leftover @name tag
from before, and logically
concludes you mean to document a constructor named "/path/to/file/CR_UI.js".
The rest is as you observed.
The short answer: you need to break that comment up into two separate comments!
I'll leave this report as "accepted" meaning the error message should be more
useful.
Original comment by micmath
on 3 Jan 2010 at 7:10
Original issue reported on code.google.com by
collin.b...@gmail.com
on 3 Jan 2010 at 5:55Attachments: