Commit graph

4 commits

Author SHA1 Message Date
Zsolt Dollenstein
c44ff0500b
Fix license headers (#560)
* Facebook -> Meta

* remove year from doc copyright
2021-12-28 11:55:18 +00:00
Jennifer Taylor
f0c1aa3be9 Add a 'with_deep_changes' helper method.
This allows you to do in one helper what you previously needed to combine
a `with_changes` and `deep_replace` helper call to do.
2019-10-15 17:32:52 -07:00
Jennifer Taylor
27b5a1d286 Improve removing nodes from parents in LibCST.
Add a RemoveFromParent() function as a convenience to returning RemovalSentinel.REMOVE.
Introduce a `deep_remove()` on CSTNode analogous to `deep_replace()` but for removing.
2019-10-02 15:43:48 -07:00
Jennifer Taylor
9fa2612673 Implement deep_replace helper on CSTNode. 2019-10-02 14:00:20 -07:00