DSMEnumeration

class dsviper.DSMEnumeration

Bases: object

An enum as declared: its qualified name and its cases, in order.

Note: Not directly instantiable.

documentation() → str

Return the doc comment the enum declaration carries in the DSM source, empty when none was written.

members() → list[DSMEnumerationCase]

Return the list of cases, in declaration order.

runtime_id() → ValueUUId

Return the uuid identifying this type.

It is computed from what the type is, so the same declaration yields the same id in any Definitions. Definitions says what each kind is computed from.

type_name() → TypeName

Return the TypeName.

type_reference() → DSMTypeReference

Return the DSMTypeReference that names this enum where another declaration uses it.