DefinitionsCollector¶
- class dsviper.DefinitionsCollector¶
Bases:
objectGathers 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.
- 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.
- has_any() bool¶
Return True if the type any was collected.
- has_any_concept() bool¶
Return True if the type any_concept was collected.