DSMConcept

class dsviper.DSMConcept

Bases: object

A concept as declared: its qualified name and the concept it specialises, if any.

Note: Not directly instantiable.

documentation() → str

Return the concept’s documentation - its doc comment in the DSM text, or the documentation given to Definitions - empty when there is none.

parent() → DSMTypeReference | None

Return the type reference of the parent concept or None.

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 concept where another declaration uses it.