https://kotlinlang.org logo
#dokka
Title
# dokka
a

adam-mcneilly

04/02/2018, 6:37 PM
Is there a standard for documenting sealed classes? Should I write the kdocs above each class declaration, or would it be done just once at the top sealed class? I think the former makes more sense, as different sealed classes can have different properties, but I want to be sure.
👍 1
s

semoro

04/03/2018, 10:21 AM
If you need to document each different class declaration to make docs clear it’s then on each declaration
If your sealed class more like enum, then on top will be OK
a

adam-mcneilly

04/03/2018, 12:44 PM
Got it, thanks. 🙂
3 Views