eclipse-archived/ceylon

ceylondoc prints types with self types as enumerated

Closed this issue · 2 comments

ePaul commented

With #1706, ceylon doc got a feature to mark enumerated types as "enumerated" in the documentation, with a label at the "subtype hierarchy" tab.

Unfortunately, this also happens when the type is not actually enumerated, but has a of clause listing one of its type parameters, i.e. when it has a self type. (See § 3.4.2 Cases.)

Example from OptionalAnnotation:
enumerated-subtypes

One could strictly say that this is a special case of an enumerated type, but the list of subtypes on the subtype list is not the list in the of clause.

So I propose to remove the "Enumerated" label when the type has a self type.

If the fact that there is a self type needs to be some highlighting, that needs to be done in a different way.

+1 this should be very easy to fix.

OK, should be fixed now.