DSMSourceDeclaration

class dsviper.DSMSourceDeclaration

Bases: object

A definition declaration, its identifier and its source spans (name, block, documentation).

Note: Not directly instantiable.

block_span() DSMSourceSpan | None

Return the DSMSourceSpan of the whole declaration block, or None.

documentation_span() DSMSourceSpan | None

Return the DSMSourceSpan of the docstring, or None.

identifier() str

Return the unique identifier of the declaration: ‘NameSpace::Name’ for a concept, club, enumeration or structure, and ‘NameSpace::KeyConcept.name’ for an attachment, whose identity includes its key concept.

name_span() DSMSourceSpan | None

Return the DSMSourceSpan of the declaration name, or None.

type_name() TypeName

Return the TypeName of the declaration.