gozilla10 / jsdoc-toolkit

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

How can i have global namespace methods marked private #303

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Parser.js sets underscored methods as private by default. This occurs in the 
generated output for my functions with namespaces but not ones on the global 
namespace. I want underscored methods that have no specified namespace to be 
marked as private as well. How can I accomplish this?  

Original issue reported on code.google.com by Contemp...@gmail.com on 15 Oct 2010 at 3:11

GoogleCodeExporter commented 8 years ago
You could write a plugin which implements the onSymbol hook and there you do:

if(symbol.is("FUNCTION") && symbol.alias.indexOf("_") == 0){
    symbol.isPrivate = true;
}

Original comment by Danny.G...@gmail.com on 16 Oct 2010 at 12:48

GoogleCodeExporter commented 8 years ago
Thanks.  It looks like there's already a regex setting it in parser.js, so I 
just modified it there.

Original comment by Contemp...@gmail.com on 19 Oct 2010 at 4:04