Open GoogleCodeExporter opened 8 years ago
I get no warning from the following code, using the latest (Revision: 742) from
the repo:
/** @constructor */
var Cat = function() {
// function body
};
Cat.prototype.meow = function () {
// method body
};
Using the following command line:
java -jar jsrun.jar app/run.js -t=templates/jsdoc/ cat.js -a
Can you please provide more information that would allow me to reproduce your
issue?
Original comment by micmath
on 17 Aug 2011 at 9:15
I should have mentioned that the code was wrapped in an anonymous function as
part of a file in a larger project and was not meant to be documented. I even
tried using @ignore and @private tags to get rid of the warnings, but they did
not help. Therefore, continuing with the Cat example, there were no comments or
@constructor tag. I also was not using the -a command line option (I just tried
and still received the warning); the only command line options in use were -t,
-D="noGlobal:true", -x, and -d for the specifics of my project.
Original comment by Kristian...@gmail.com
on 18 Aug 2011 at 3:26
Sorry but I still get no warning and there is no cat is in my docs either. My
source code is this:
// cat.js
(function() { // wrapped in an anonymous function
// no comments or @constructor tag here
var Cat = function() {
// function body
};
Cat.prototype.meow = function () {
// method body
};
})();
And the command line I am using is this:
$ java -jar jsrun.jar app/run.js -t=templates/jsdoc/ -D="noGlobal:true" -x=.js
-d=out cat.js
Please try the above for yourself, using exactly that source code and that
command line, with the latest version from the SVN repo. If I have
misunderstood you somehow, please provide the correct source code and command
line I should be using to reproduce your issue.
Original comment by micmath
on 18 Aug 2011 at 8:31
Retried with corrected -x value, but no difference.
$ java -jar jsrun.jar app/run.js -t=templates/jsdoc/ -D="noGlobal:true" -x=js
-d=out cat.js
Original comment by micmath
on 18 Aug 2011 at 8:43
Original issue reported on code.google.com by
Kristian...@gmail.com
on 17 Aug 2011 at 5:55