replace nodes by expr
(self, expr)
| 1437 | |
| 1438 | @with_camel_case_alias |
| 1439 | def replace_all(self, expr): |
| 1440 | """replace nodes by expr |
| 1441 | """ |
| 1442 | if self._parent is no_default: |
| 1443 | raise ValueError( |
| 1444 | 'replaceAll can only be used with an object with parent') |
| 1445 | self._parent(expr).replace_with(self) |
| 1446 | return self |
| 1447 | |
| 1448 | def clone(self): |
| 1449 | """return a copy of nodes |
nothing calls this directly
no test coverage detected