DSMSourceCase

class dsviper.DSMSourceCase

Bases: object

An enumeration case and its source spans (name, doc).

Note: Not directly instantiable.

documentation_span() → DSMSourceSpan | None

Return the DSMSourceSpan of the case docstring, or None.

enumeration() → TypeName

Return the TypeName of the enclosing enumeration.

name() → str

Return the case name.

name_span() → DSMSourceSpan | None

Return the DSMSourceSpan of the case name, or None.