DSMTypeReference

class dsviper.DSMTypeReference

Bases: DSMType

A type a parsed model names rather than spells out.

Every leaf of a declared type is one of these, string and int32 included: type_name() is the name as written, domain() what it resolves to. Definitions holds the registered type that name stands for.

Note: Not directly instantiable.

domain() → str

Return what the reference resolves to - a primitive, a concept, a club, an enum, a struct, or one of the two open types.

type_name() → TypeName

Return the TypeName.