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
I would like to expose the getter and suppress the setter for a property in the generated documentation.
Below is the way I have attempted to achieve this but it doesn't seem to work.
var property: Int
/** @suppress */
private set
Is it possible to hide/exclude only a property's setter while making its getter visible?
Installation
Operating system: Linux
Build tool: Gradle v6.7.1
Dokka version: 1.5
The text was updated successfully, but these errors were encountered:
Why would you like to hide the setter? Dokka in the default html format doesn't render setters/getters until they are annotated with some documented annotations.
Also: in this case the setter is private so it really shouldn't be visible as by default we include only public api
I would like to hide the setter because as you say it is private and shouldn't be visible to the public api.
I am using Dokka in the default html format as far as I can tell and it is rendering class properties with a separate getter and setter. There is no annotation I have added to the properties.
Question
I would like to expose the getter and suppress the setter for a property in the generated documentation.
Below is the way I have attempted to achieve this but it doesn't seem to work.
Is it possible to hide/exclude only a property's setter while making its getter visible?
Installation
The text was updated successfully, but these errors were encountered: