Negate the sense of the root connector. This reorganises the children so that the current node has a single child: a negated node containing all the previous children. This slightly odd construction makes adding new children behave more intuitively. Interpre
(self)
| 340 | self.children = [obj, node] |
| 341 | |
| 342 | def negate(self): |
| 343 | """ |
| 344 | Negate the sense of the root connector. This reorganises the children |
| 345 | so that the current node has a single child: a negated node containing |
| 346 | all the previous children. This slightly odd construction makes adding |
| 347 | new children behave more intuitively. |
| 348 | |
| 349 | Interpreting the meaning of this negate is up to client code. This |
| 350 | method is useful for implementing "not" arrangements. |
| 351 | """ |
| 352 | self.children = [ |
| 353 | self._new_instance(self.children, self.connector, not self.negated) |
| 354 | ] |
| 355 | self.connector = self.default |
| 356 | |
| 357 | def start_subtree(self, conn_type): |
| 358 | """ |
no test coverage detected