fromDRI

fun fromDRI(dri: DRI): QuarkdocEnum?

Looks up a QuarkdocEnum from the given DRI.

  • If the enum is declared in the same module, it will be found in the EnumStorage as a DokkaEnumAdapter.

  • If the enum is declared in a different module that is present in this classpath (e.g. core), it will be loaded via reflection as a ReflectionEnumAdapter.

Return

a QuarkdocEnum from the given DRI, or null if it cannot be found.

Parameters

dri

the DRI that points to the enum declaration.