cool-easter-32542
06/10/2024, 5:55 AMfileinput is brittle.
libcst (for example) has nice matcher code to clean up some of the visitor code, and maybe the visitor recursion, and the CST would help stabilize code replacement.
Additionally, I'm using libcst in another Pants migration tool that I'm experimenting with, and it makes migrations trivial by comparison to using the ast.
My guess is that we could probably remove 10-15% of the migration code.
pantsbuild/pantscool-easter-32542
06/25/2024, 12:01 PM