DSMSourceType

class dsviper.DSMSourceType

Bases: object

A type sub-expression occurrence: its source span and its fully-qualified DSM spelling, such as ‘vector<Shop::Order>’.

Note: Not directly instantiable.

representation() → str

Return the DSM representation of the type, fully qualified.

It renders what the source declared - ‘vector<Shop::Order>’ - so no namespace is dropped. DSMDefinitionsInspector.representation(type_name) is the one that shortens a name against what is in scope, and answers a shorter spelling for the same type.

span() → DSMSourceSpan | None

Return the DSMSourceSpan of the whole type expression, or None.