gozilla10 / jsdoc-toolkit

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

@final #254

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Could you make a @final tag (or something like that) to indicate when
methods should NOT be overridden (i.e. when they are "non-virtual")?  That
would be nice.

Original issue reported on code.google.com by james.m....@gmail.com on 25 Sep 2009 at 2:27

GoogleCodeExporter commented 8 years ago
(Noting that everything in JavaScript is virtual by default, like Java.)

Of course, we cant actually MAKE a final method, but at least the documentation 
would
indicate its intent.

Original comment by james.m....@gmail.com on 25 Sep 2009 at 2:29

GoogleCodeExporter commented 8 years ago

Original comment by micmath on 8 Nov 2009 at 8:31

GoogleCodeExporter commented 8 years ago
see
http://code.google.com/p/jsdoc-toolkit/wiki/FAQ#Using_custom_tags

Though I will add support for a @const soon, to stay in sync with Google Closure
http://code.google.com/closure/compiler/docs/js-for-compiler.html
and chances are high that @final will be a synonym for @const.

Original comment by micmath on 8 Nov 2009 at 8:38

GoogleCodeExporter commented 8 years ago
I like this idea for both methods and classes.  You should bring it up on 
closure-library-discuss and closure-compiler-discuss.

Original comment by nn...@google.com on 3 Jun 2011 at 3:21