LibCST/libcst/codegen
Jennifer Taylor ba471909c4 Generalize codegen cleanup step and apply it to all codegen.
I noticed that the typed visitors codegen was creating messy types such as Union[SingleType]. We have a clean-up for Union[SingleType] snuck into gen_matcher_classes. So, lets remove that snuck-in clean-up from gen_matcher_classes and apply it globally to all codegen. This makes its purpose a lot more obvious, while helping decouple necessary codegen from prettifying/simplifying transforms. It also cleans up typed visitors, so that's a bonus.
2019-10-11 12:29:23 -07:00
..
tests Generalize codegen cleanup step and apply it to all codegen. 2019-10-11 12:29:23 -07:00
__init__.py Add unit test to verify that codegen is clean. 2019-08-28 13:28:29 -07:00
gen_matcher_classes.py Generalize codegen cleanup step and apply it to all codegen. 2019-10-11 12:29:23 -07:00
gen_visitor_functions.py Codegen attribute visitors. 2019-08-28 13:28:29 -07:00
generate.py Generalize codegen cleanup step and apply it to all codegen. 2019-10-11 12:29:23 -07:00
transforms.py Generalize codegen cleanup step and apply it to all codegen. 2019-10-11 12:29:23 -07:00