DSMStructureField¶
- class dsviper.DSMStructureField¶
Bases:
objectOne field of a struct, as declared: its name, its type, and the value it defaults to.
Note: Not directly instantiable.
- default_value() DSMLiteral | None¶
Return the literal the field defaults to, or None if it declares no default.
- documentation() str¶
Return the doc comment the field declaration carries in the DSM source, empty when none was written.
- name() str¶
Return the field name as declared.