DSMAttachmentFunction¶
- class dsviper.DSMAttachmentFunction¶
Bases:
objectAn attachment function as declared: its prototype, and whether it mutates the document or only reads it.
Note: Not directly instantiable.
- documentation() str¶
Return the doc comment the function declaration carries in the DSM source, empty when none was written.
- is_mutable() bool¶
Return True if the function mutates the state it is given.
- prototype() DSMFunctionPrototype¶
Return the DSMFunctionPrototype: the function name, its parameters and its return type.