You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default private and implicit members are hidden, the rest is shown.
22
+
By default `private` and `implicit` members are hidden, the rest is shown.
23
+
24
+
== Make some members "included but hidden by default"
25
+
26
+
Moreover, you can specify some visibility levels as "included but hidden by default" by adding `?` at the end of the visibility level name.
27
+
28
+
The main use-case is for `protected` and `strictprotected` visibility levels, which:
29
+
30
+
- on one hand, deserve to be mentioned and documented (developers using the class need to know about them, to be able to develop descendants),
31
+
32
+
- on the other hand, sometimes we don't want the `protected` stuff to clutter the default view too much, because _most_ developers are fine just exploring the `public` identifiers.
33
+
34
+
Now you can have a cake, and eat it too :), by specifying the "included but hidden by default" visibility levels with `?` at the end for the `--visible-members` option. Like this:
This results in `protected` members included but hidden by default in the HTML output. We will show a checkbox to allow user to show/hide them (using JavaScript, so no page reload).
0 commit comments