-
Notifications
You must be signed in to change notification settings - Fork 124
make @visibleForTesting equivalent to dartdoc's @nodoc tag #1664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Maybe support defining aliases for |
@jcollins-g If not this this would just adding an option to ignore @Nodoc tag to the command line tool work? |
@BrennanGambling Hi Brennan, I'm not sure I understand what "adding an option to ignore If you mean, add these via the command line, part of the problem from dartdoc's perspective is finding a way to specify which named object to hide. Users can create their own classes with the same name and without some special support (like that added in the fix to #1554) it's not easy to add support for arbitrary ones. Increasing to P2 -- it seems like a good idea to do something about this even if we're not sure what yet. |
@jcollins-g by "adding an option to ignore the @Nodoc tag" I mean a command line option/flag the will ignore the @Nodoc tag and not the comment. So in the default mode adding the @Nodoc tag to a comment would mean it would not appear in the documentation. but say calling dartdoc with a --ignore-nodoc-tag option would mean doc comments tagged with @Nodoc would still appear in the documentation. It would be very useful for making the public API documentation and then seperate documentation for internal use by the package developers. |
@BrennanGambling This is something we could do. It would have some impact on canonicalization and cross-linking between repos (because different runs of dartdoc with and without this flag would create different canonicalizations for different objects). Some loud warning to that effect if --link-to-remote is set seems like a good idea. |
I disagree here. I have packages which expose test-only APIs alongside other APIs. Those are intended to be used by users but just inside tests (due to being less safe and such). An implicit nodoc here is counterproductive to that goal. |
@jacob314 suggested that
@visibleForTesting
could be made equivalent to the@nodoc
tag and hide elements so tagged.P3 because I'm not sure dartdoc is the right place to implement this, but I think the idea in general to align these is reasonable. It's a little tricky because dartdoc has to locate the special object in question (making me think of #1554) but if we decide it is a good idea it's definitely possible.
The text was updated successfully, but these errors were encountered: