[dojo-contributors] new doc parser and tags
kenbenjamin at kenbenjamin.net
Fri Jun 8 12:04:11 EDT 2012
Maybe this is a dumb question but what if you have non-private _functions,
like _setXXXAttr, which are private but you need to know that you can
set(‘XXX’), or other uses of _function such as protected?
I guess what I’m asking is what is the default for _ prefixes and how do
you override that considering there seem to be multiple intentions such as
private, protected, and _setXXXAttr. All of which seem to need different
kinds of documentation handling.
*From:* dojo-contributors-bounces at mail.dojotoolkit.org [mailto:
dojo-contributors-bounces at mail.dojotoolkit.org] *On Behalf Of *Tom Trenka
*Sent:* Friday, June 08, 2012 5:29 PM
*To:* dojo dev.
*Subject:* Re: [dojo-contributors] new doc parser and tags
Current viewer code looks first for something to be marked by the parser as
"private"; if it doesn't find that attribute and begins with "_", it
assumes that it is private. The only thing the HTML portion of the viewer
does with that is to add a CSS class to the list and detail portions of
that field, at which point some progressive JS will show or hide it
(depending on the buttons at the top of each page which will show/hide both
private fields and/or inherited ones.
On Fri, Jun 8, 2012 at 10:09 AM, Christophe Jolif <cjolif at gmail.com> wrote:
Ok for esoteric tags and even protected. But what about "private" is
that implemented in the viewer? Is that needed in _all_ cases to hide
something? Or are they other heuristics to determine what is hidden
(like underscore+non documented methods? _setXXXAttr methods?...)? Or
is that the only option?
Thanks a lot,
On Fri, Jun 8, 2012 at 4:03 AM, Tom Trenka <ttrenka at gmail.com> wrote:
> Never got implemented but I know that when the idea of "tags" was kind of
> released outside of what you were looking for, there was a lot of "oh,
> tags...that's awesome. Can we mark objects based on general categories
> (like Ajax or DOM) with this? Can we use it to bring some kind of easy
> organization, so that people looking for specific functionality can find
> quickly?"...that kind of thing. It was an idea that had some traction but
> not enough for anyone to try to actually tag things that way in the API
> But I can see that happening if "tags" actually worked...
> -- Tom
> On Thu, Jun 7, 2012 at 6:33 PM, Bill Keese <bill at dojotoolkit.org> wrote:
>> On Fri, Jun 8, 2012 at 12:48 AM, Tom Trenka <ttrenka at gmail.com> wrote:
>>> However, the usage of tags seems to have generated a bit of confusion;
>>> some see it as a way of marking fields using compiled language modifiers
>>> (i.e. static, protected, const), and some see it as a way of
>>> tag cloud (for instance, tagging something as "ajax" or "DOM"). We'll
>>> probably need to have this clarified.
>> Hmm, where are things tagged as "ajax" or "DOM"? The style guide
>> lists the set of expected tags (although now looking at it, I see that
>> has also been using const and readonly, so I need to add those).
>> dojo-contributors mailing list
>> dojo-contributors at mail.dojotoolkit.org
> dojo-contributors mailing list
> dojo-contributors at mail.dojotoolkit.org
dojo-contributors mailing list
dojo-contributors at mail.dojotoolkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dojo-contributors