Iterate through subcomponents and assign the 'block' attribute
(self)
| 70 | return f"Block<{self.opcode!r}>" |
| 71 | |
| 72 | def link_subcomponents(self): |
| 73 | """ |
| 74 | Iterate through subcomponents and assign the 'block' attribute |
| 75 | """ |
| 76 | if self.mutation: |
| 77 | self.mutation.block = self |
| 78 | |
| 79 | for iterable in (self.fields.values(), self.inputs.values()): |
| 80 | for subcomponent in iterable: |
| 81 | subcomponent.block = self |
| 82 | |
| 83 | def add_input(self, name: str, _input: inputs.Input) -> Self: |
| 84 | """ |
no outgoing calls
no test coverage detected