DefinitionsCollector

class dsviper.DefinitionsCollector

Bases: object

Gathers the types a subset of definitions references, to hand to DefinitionsConst.extract.

The runtime ids of the named kinds read back; a container type or an attachment is carried and not listed.

Note: Not directly instantiable.

club_runtime_ids() → set[ValueUUId]

Return the set of runtime IDs for collected clubs.

collect_attachment(attachment: Attachment) → None

Collect the types referenced by the attachment.

collect_prototype(prototype: FunctionPrototype) → None

Collect the types referenced by the prototype.

collect_prototypes(prototypes: list[FunctionPrototype]) → None

Collect the types referenced by the list of prototypes.

collect_structure_descriptor(type_structure_descriptor: TypeStructureDescriptor) → None

Collect the types type_structure_descriptor references, transitively.

collect_type(type: Type) → None

Collect the types referenced by the type.

concept_runtime_ids() → set[ValueUUId]

Return the set of runtime IDs for collected concepts.

enumeration_runtime_ids() → set[ValueUUId]

Return the set of runtime IDs for collected enumerations.

has_any() → bool

Return True if the type any was collected.

has_any_concept() → bool

Return True if the type any_concept was collected.

structure_runtime_ids() → set[ValueUUId]

Return the set of runtime IDs for collected structures.